geodata.Mask.load_shape_xr

geodata.Mask.load_shape_xr#

geodata.Mask.load_shape_xr(names: str | None = None) dict[str, xarray.DataArray]#

Using xarray to load the shape masks.

Parameters:

names (list) – The names of the shape masks to be loaded. If not specified, load all shape masks.

Returns:

A dictionary of shape masks with shape names as keys and xarray DataArrays as values.

Return type:

dict

Raises:

ValueError – If the Mask object has not been saved.