hydromt.Dataset.vector.clip_bbox#

Dataset.vector.clip_bbox(bbox, crs=None, buffer=None) DataArray | Dataset#

Select point locations to bounding box.

Parameters:
  • bbox (tuple of floats) – (xmin, ymin, xmax, ymax) bounding box

  • buffer (float, optional) – buffer around bbox in crs units, None by default.

  • crs (int, optional) – EPSG of the data. If not given, it will be inferred.

Returns:

da – Clipped DataArray

Return type:

xarray.DataArray