uwacan.positional.utm_to_wgs84#
- utm_to_wgs84(easting, northing, utm_zone, is_south=False)[source]#
Convert UTM coordinates to WGS84 coordinates.
- Parameters:
- eastingfloat, array_like
Meters easting.
- northingfloat, array_like
Meters northing.
- utm_zoneint, array_like
The utm zone for the coordinate.
- is_southbool, array_like, default=False
If the coordinate(s) are on the souther hemisphere or not.
- Returns:
- latitudefloat, array_like
The WGS84 latitude in degrees, positive on the northern hemisphere and negative on the souther hemisphere.
- longitudefloat, array_like
The WGS84 longitude in degrees, positive is east and negative is west of the prime meridian.
Notes
The UTM zones are 6° wide, with zone 31 covering [0°,6°), with higher zone numbers to the east. The easting values are defined as meters east of 500km west of the central meridian in each zone. The northing values are meters north of the equator on the northern hemisphere, and meters north of 10,000km on the southern hemisphere. This implementation uses formulas from the Wikipedia article.