hydromt.DataArray.raster.clip_mask#
- DataArray.raster.clip_mask(da_mask: DataArray, mask: bool = False)#
Clip object to region with mask values greater than zero.
- Parameters:
da_mask (
xarray.DataArray
) – Mask array.mask (
bool
, optional) – Mask values outside geometry with the raster nodata value and add a “mask” coordinate with the boolean mask.
- Returns:
Data clipped to mask.
- Return type:
xarray.DataSet
orDataArray