polartoolkit.region_xy_to_ll#
- region_xy_to_ll(region, hemisphere=None, epsg=None, dms=False, as_corners=False)[source]#
Convert region in format [xmin, xmax, ymin, ymax] in projected meters to lat / lon
- Parameters:
region (
tuple[Any,Any,Any,Any]) β region boundaries in format [xmin, xmax, ymin, ymax] in metershemisphere (
str|None) β set projection based on βnorthβ or βsouthβ hemispheres, by default Noneepsg (
str|None) β set projection from EPSG code string (β3031β), by default Nonedms (
bool) β if True, will return results as deg:min:sec instead of decimal degrees, by default Falseas_corners (
bool) β if True, will return the region string in the format (lower left longitude / lower left latitude / upper right longitude / upper right latitude +r)
- Returns:
region boundaries in format [lon_min, lon_max, lat_min, lat_max] or as GMT region string in the format (lower left longitude / lower left latitude / upper right longitude / upper right latitude +r).
- Return type: