Skip to content

Instantly share code, notes, and snippets.

@chrisjsimpson
chrisjsimpson / dms2dec.py
Created Apr 1, 2019 — forked from jeteon/dms2dec.py
Convert coordinates in DMS notation to decimal in Python.
View dms2dec.py
#!/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.