hydromt_wflow.workflows.river_bathymetry#
- hydromt_wflow.workflows.river_bathymetry(ds_model: ~xarray.core.dataset.Dataset, gdf_riv: ~geopandas.geodataframe.GeoDataFrame, method: str = 'powlaw', smooth_len: float = 5000.0, min_rivdph: float = 1.0, min_rivwth: float = 30.0, logger=<Logger hydromt_wflow.workflows.river (WARNING)>, **kwargs) Dataset [source]#
Get river width and bankfull discharge.
From gdf_riv to estimate river depth using
hydromt.workflows.river_depth()
. Missing values in rivwth are first filled using downward filling and remaining (upstream) missing values are set to min_rivwth (for rivwth) and 0 (for qbankfull).- Parameters:
ds_model (xr.Dataset) – Model dataset with ‘flwdir’, ‘rivmsk’, ‘rivlen’, ‘x_out’ and ‘y_out’ variables.
gdf_riv (gpd.GeoDataFrame) – River geometry with ‘rivwth’ and ‘rivdph’ or ‘qbankfull’ columns.
method ({'gvf', 'manning', 'powlaw'}) – see py:meth:hydromt.workflows.river_depth for details, by default “powlaw”
smooth_len (float, optional) – Length [m] over which to smooth the output river width and depth, by default 5e3
min_rivdph (float, optional) – Minimum river depth [m], by default 1.0
min_rivwth (float, optional) – Minimum river width [m], by default 30.0
- Returns:
Dataset with ‘rivwth’ and ‘rivdph’ variables
- Return type:
xr.Dataset