solarspatialtools.spatial.utm2latlon

solarspatialtools.spatial.utm2latlon(e, n, zone, south=False)

Convert from UTM coordinates to latitude/longitude (WGS84)

Parameters

enumeric

a value of easting, or an indexable array of eastings, or a Pandas Series (indices for e and n must match)

nnumeric

a value of northing, or an indexable array of northings, or a Pandas Series (indices for e and n must match)

zonenumeric

the UTM zone, which is required for this conversion. Zone should include only the number (i.e. 32U should be listed as 32).

southbool

False for northern hemisphere, True for southern hemisphere

Returns

(lat, lon)numeric

tuple containing latitude, longitude in degrees. For input arrays or lists, the output will be a numpy array of lat,lon pairs. For inputs that are Pandas types, the output will have columns ‘lat’ and ‘lon’ and will share an index with the input.