This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess as sp | |
import geopandas as gpd | |
cell_size = 1000 | |
left, bottom, right, top = 746000, 1458000, 1388000, 2069000 | |
def grid( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import datetime | |
import numpy as np | |
import pandas as pd | |
def read_asos(code, begin, until, *, cache_dir='./'): | |
if isinstance(begin, (int,)): | |
begin_year = begin | |
elif isinstance(begin, (datetime.date,)): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> | |
<NamedLayer> | |
<Name>undefined</Name> | |
<UserStyle> | |
<Name>rasterr</Name> | |
<Title>Rasterr</Title> | |
<Abstract>A simple raaster style</Abstract> | |
<FeatureTypeStyle> | |
<FeatureTypeName>Feature</FeatureTypeName> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Allow Colord all Users] | |
Identity=unix-user:* | |
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile | |
ResultAny=no | |
ResultInactive=no | |
ResultActive=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VRTDataset rasterXSize="21396" rasterYSize="20324" subClass="VRTWarpedDataset"> | |
<SRS>PROJCS["Korea 2000 / Unified CS",GEOGCS["Korea 2000",DATUM["Geocentric_datum_of_Korea",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6737"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4737"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",38],PARAMETER["central_meridian",127.5],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",1000000],PARAMETER["false_northing",2000000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","5179"]]</SRS> | |
<GeoTransform> 7.4610000000000000e+05, 3.0000000000000000e+01, 0.0000000000000000e+00, 2.0684700000000000e+06, 0.0000000000000000e+00, -3.0000000000000000e+01</GeoTransform> | |
<Metadata> | |
<MDI key="AREA_OR_POINT">Area</MDI> | |
</Metadata> | |
<VRTRasterBand dataType="Float32" band="1" subClass="VRTWarpedRaster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(data1 * data2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROC_NUM=$(ps -ef | grep "ssh-agent" | grep -v "grep" | wc -l) | |
if (( "${PROC_NUM}" > "0" )); then | |
echo "ssh-agent is running." | |
. ~/ssh-agent.sh | |
else | |
echo "ssh-agent is not running"; | |
ssh-agent > ~/ssh-agent.sh | |
. ~/ssh-agent.sh | |
ssh-add ~/.ssh/pjh | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -q -N "" -A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:latest | |
MAINTAINER ParkJooHyeon <www.jrr.kr@gmail.com> | |
ENV PYTHON_VERSION "3.6.0" | |
RUN \ | |
yum -y install epel-release && \ | |
yum -y update | |
RUN \ |