hydromt_fiat.gis.raster.expand_raster_to_bounds#

hydromt_fiat.gis.raster.expand_raster_to_bounds(ds: Dataset | DataArray, bbox: tuple[float] | ndarray) Dataset | DataArray[source]#

Expand a raster to (beyond) the borders of a bounding box.

When expanded, the new raster will be aligned with the old one.

Parameters:
  • da (xr.DataArray) – The input raster dataset.

  • bounds (tuple[float] | np.ndarray) – The bounds to which to expand the raster.

Returns:

An expanded raster.

Return type:

xr.DataArray