watex.site.Location#
- class watex.site.Location(lat=None, lon=None, **kwds)[source]#
Location class
Assert, convert coordinates lat/lon , east/north to appropriate formats.
Location does not follow the scikit-learn API in order to encompass the the syntax of pycsamt and mtpy. The latter follows the Generci Mapping Tool (GMT) API format.
- Parameters:
lat (float or string (DD:MM:SS.ms)) – latitude of point
lon (float or string (DD:MM:SS.ms)) – longitude of point
east (float) – easting coordinate in meters
north (float) – northing coordinate in meters
datum (string) – well known datum ex. WGS84, NAD27, NAD83, etc.
utm_zone (Optional, string) – zone number and ‘S’ or ‘N’ e.g. ‘55S’. Defaults to the centre point of the provided points
epsg (Optional, int) – epsg number defining projection (see http://spatialreference.org/ref/ for moreinfo) Overrides utm_zone if both are provided
reference_ellipsoid (Optional, int) – reference ellipsoids is derived from Peter H. Dana’s website- http://www.utexas.edu/depts/grg/gcraft/notes/datum/elist.html Department of Geography, University of Texas at Austin Internet: pdana@mail.utexas.edu . Default is
23constrained to WGS84.