hydromt_sfincs.workflows.burn_river_zb#

hydromt_sfincs.workflows.burn_river_zb(gdf_riv: ~geopandas.geodataframe.GeoDataFrame, da_elv: ~xarray.core.dataarray.DataArray, da_msk: ~xarray.core.dataarray.DataArray, flwdir: ~pyflwdir.pyflwdir.FlwdirRaster | None = None, river_d4: bool = True, logger=<Logger hydromt_sfincs.workflows.bathymetry (WARNING)>, **kwargs)[source]#

Burn bedlevels from gdf_riv (column zb) into the DEM da_elv at river cells indicated in da_msk.

Parameters:
  • gdf_riv (gpd.GeoDataFrame) – River segments with bed level (zb) estimates

  • da_elv (xr.DataArray of float) – Elevation raster

  • da_msk (xr.DataArray of bool:) – River mask

  • flwdir (pyflwdir.FlwdirRaster, optional) – Flow direction object

  • river_d4 (bool, optional) – If True (default) ensure river cells have D4 connectivity

Returns:

da_elv1 – DEM with bedlevels burned in.

Return type:

xr.DataArray