polartoolkit.set_proj#
- set_proj(region, hemisphere=None, epsg=None, fig_height=None, fig_width=None)[source]#
Gives GMT projection strings in project and geographic units, from region and figure height or width. Inspired from mrsiegfried/Venturelli2020-GRL.
- Parameters:
region (tuple[float, float, float, float]) β region boundaries in format [xmin, xmax, ymin, ymax] in projected 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
fig_height (float | None) β desired figure height in cm, by default is None
fig_width (float | None) β instead of using figure height, set the projection based on figure width in cm, by default is None
- Returns:
returns a tuple of the following variables: proj, proj_latlon, fig_width, fig_height
- Return type: