Skip to content

Instantly share code, notes, and snippets.

View maxchernet's full-sized avatar

Maxim Chernetskiy maxchernet

  • Cervest Ltd
  • London, UK
View GitHub Profile
@chrisjsimpson
chrisjsimpson / dms2dec.py
Created April 1, 2019 12:17 — forked from jeteon/dms2dec.py
Convert coordinates in DMS notation to decimal in Python.
#!/env/python
# coding=utf8
"""
Converting Degrees, Minutes, Seconds formatted coordinate strings to decimal.
Formula:
DEC = (DEG + (MIN * 1/60) + (SEC * 1/60 * 1/60))
Assumes S/W are negative.
@KMarkert
KMarkert / bulk_download_swbd.py
Last active October 6, 2023 06:07
This script is used to bulk download SRTM Water Body Data from the USGS over a defined AOI
import os
import glob
import urllib2
import numpy as np
outFolder = "J:/africa_srtm/org_zip/" #change output path
lats = np.arange(-35,33)#change lat bounds
lons = np.arange(-18,52)#change lon bounds