polartoolkit.regions

polartoolkit.regions#

Bounding regions for commonly plotted Antarctic regions. In Polar Stereographic Projection (EPSG:3031). The format is (East, West, North, South), in meters.

combine_regions(region1, region2)[source]#

Get the bounding region of 2 regions.

Parameters:
Returns:

Bounding region of the 2 supplied regions.

Return type:

tuple[float, float, float, float]

draw_region(**kwargs)[source]#

Plot an interactive map, and use the “Draw a Rectangle” button to draw a rectangle and get the bounding region. Vertices will be returned as the output of the function.

Returns:

Returns a list of list of vertices for each polyline.

Return type:

Any

Parameters:

kwargs (Any)

get_regions()[source]#

get all the regions defined in this module.

Returns:

dictionary of each defined region’s name and values

Return type:

dict[str, tuple[float, float, float, float] ]