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[float, float, float, float]) β region boundaries in format [xmin, xmax, ymin, ymax] in meters
hemisphere (str, optional,) β set projection based on βnorthβ or βsouthβ hemispheres, by default None
epsg (str | None, optional) β set projection from EPSG code string (β3031β), by default None
dms (bool) β if True, will return results as deg:min:sec instead of decimal degrees, by default False
as_corners (bool = False,) β 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: