solarspatialtools.spatial.latlon2utm
- solarspatialtools.spatial.latlon2utm(lat, lon, zone=None)
Convert a latitude/longitude pair from WGS84 into UTM coordinates.
Parameters
- latnumeric
a value of latitude in degrees, or an indexable array of latitudes, or a Pandas Series (indices for lat and lon must match)
- lonnumeric
a value of latitude in degrees, or an indexable array of latitudes, or a Pandas Series (indices for lat and lon must match)
- zonenumeric
the UTM zone (number only). Calculated from longitude if None
Returns
- (east, north)numeric
a tuple of the UTM (Easting, Northing) for the site. For input arrays or lists, the output will be a numpy array of E,N pairs. For inputs that are Pandas types, the output will have columns ‘E’ and ‘N’ and will share an index with the input.