get_coords_from_mask#

mhm_tools.common.cli_utils.get_coords_from_mask(mask, mask_key=None, resolutions=None)[source]#

Get the coordinate extents from a mask NetCDF file.

Parameters:

mask (str) – Path to the mask file.

Returns:

(lon_min, lon_max, lat_min, lat_max, mask_dataarray)

Return type:

tuple