hydromt.gis.DataArray.raster.clip#

gis.DataArray.raster.clip(xslice: slice, yslice: slice)#

Clip object based on slices.

Parameters:
  • xslice (slice) – x and y slices

  • yslice (slice) – x and y slices

Returns:

Data clipped to slices

Return type:

xarray.DataSet or DataArray