polartoolkit.get_grid_region

Contents

polartoolkit.get_grid_region#

get_grid_region(grid)[source]#

Returns the region of the specified grid.

Parameters:

grid (str | DataArray) – Input grid to get region from. Filename string or loaded grid.

Returns:

array with the region boundary in the format (xmin, xmax, ymin, ymax)

Return type:

tuple[float, ...]