Skip to content

Instantly share code, notes, and snippets.

@SrNetoChan
SrNetoChan / dms2dec.py
Last active October 30, 2015 16:49 — forked from tomwhipple/dms2dec.py
convert DMS coordinates 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.