polartoolkit.region_to_bounding_box

polartoolkit.region_to_bounding_box#

region_to_bounding_box(region)[source]#

Convert region in format [xmin, xmax, ymin, ymax] to bounding box format used for icepyx: [ lower left longitude, lower left latitude, upper right longitude, upper right latitude ] Same format as [xmin, ymin, xmax, ymax], used for bbox parameter of geopandas.read_file

Parameters:

region (tuple[Any, Any, Any, Any]) – region boundaries in format [xmin, xmax, ymin, ymax] in meters or degrees.

Returns:

region boundaries in bounding box format.

Return type:

tuple[Any, Any, Any, Any]