polartoolkit.region_ll_to_xy

Contents

polartoolkit.region_ll_to_xy#

region_ll_to_xy(region, hemisphere=None, epsg=None)[source]#

Convert region in format [lon_min, lon_max, lat_min, lat_max] to projected meters in the north or south polar stereographic projections.

Parameters:
  • region (tuple[float, float, float, float]) – region boundaries in format [xmin, xmax, ymin, ymax] in decimal degrees

  • hemisphere (str | None) – set projection based on β€œnorth” or β€œsouth” hemispheres, by default None

  • epsg (str | None) – set projection from EPSG code string (β€œ3031”), by default None

Returns:

region boundaries in format [x_min, x_max, y_min, y_max]

Return type:

tuple[float, float, float, float]