Skip to content

Instantly share code, notes, and snippets.

View dogbull's full-sized avatar

Park Joo-hyeon dogbull

View GitHub Profile
import os
import subprocess as sp
import geopandas as gpd
cell_size = 1000
left, bottom, right, top = 746000, 1458000, 1388000, 2069000
def grid(
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,)):
<?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>
[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
<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
@dogbull
dogbull / expr1.py
Last active October 5, 2018 06:55
(data1 * data2)
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
ssh-keygen -q -N "" -A
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 \