lair.geo.dms2dd#
- lair.geo.dms2dd(d=0.0, m=0.0, s=0.0)[source]#
Degree-minute-second to decimal degree
The sign of
dapplies to the whole angle (mandsare magnitudes), sodms2dd(-40, 30)is -40.5. For angles between 0 and -1 degree passd=-0.0.- Parameters:
- Returns:
float – Decimal degrees, or NaN if any input cannot be converted to a float (e.g.
Noneor a non-numeric string).- Return type:
See also
wrap_lonsPuts longitudes in one range.
Examples
>>> from lair.geo import dms2dd >>> dms2dd(40, 45, 36) 40.76 >>> dms2dd(-111, 53, 24) -111.89