This file contains hidden or 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
install python 2.7 | |
install pip | |
install gdal core (http://download.gisinternals.com/release.php) | |
config gdal (helpful post: https://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-on-windows/) | |
install python bindings for gdal (from same site as core) | |
test python gdal bindings | |
install scipy from wheel (http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy) | |
install scikit_image from wheel (http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-image) | |
install pycurl from wheel (http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl) | |
install numpy 1.10.0rc1+mkl-cp27 (http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy) |
This file contains hidden or 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
# gradients based on http://bsou.io/posts/color-gradients-with-python | |
def hex_to_RGB(hex): | |
''' "#FFFFFF" -> [255,255,255] ''' | |
# Pass 16 to the integer function for change of base | |
return [int(hex[i:i+2], 16) for i in range(1,6,2)] | |
def RGB_to_hex(RGB): | |
''' [255,255,255] -> "#FFFFFF" ''' |
This file contains hidden or 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
date | smsa_name | id | x | y | longitude | latitude | z | death_interval | time_of_onset | |
---|---|---|---|---|---|---|---|---|---|---|
2020-02-29 | Other, Alabama | 1 | 973830.5625930182 | -385910.0365281413 | -85.416322747473 | 33.56694949920062 | 0 | 1440 | 2020-02-29 00:00:00.000000 | |
2020-03-01 | Other, Alabama | 2 | 916301.3726971925 | -667279.5138475613 | -86.34651430654918 | 31.112041234467707 | 0 | 1440 | 2020-03-01 00:00:00.000000 | |
2020-03-02 | Other, Alabama | 3 | 949536.0082880756 | -592849.6876284727 | -85.9160385509501 | 31.74621451341501 | 0 | 1440 | 2020-03-02 00:00:00.000000 | |
2020-03-03 | Other, Alabama | 4 | 812546.8106928112 | -680251.0424732385 | -87.44558838237093 | 31.085179100730482 | 0 | 1440 | 2020-03-03 00:00:00.000000 | |
2020-03-04 | Other, Alabama | 5 | 816509.7356431917 | -347691.03829442064 | -87.0762691649133 | 34.05149282966826 | 0 | 1440 | 2020-03-04 00:00:00.000000 | |
2020-03-05 | Other, Alabama | 6 | 754297.1845343699 | -440542.22799689707 | -87.83960863416344 | 33.27363778650419 | 0 | 1440 | 2020-03-05 00:00:00.000000 | |
2020-03-06 | Other, Alabama | 7 | 944837.0910469124 | -312752.6556362087 | -85.64260644970159 | 34.246195283079544 | 0 | 1440 | 2020-03-06 0 |