hydromt_wflow.WflowModel.setup_rivers¶
- WflowModel.setup_rivers(hydrography_fn='merit_hydro', river_upa=30, slope_len=2000, n_river_mapping=None, min_rivlen_ratio=0.1)[source]¶
This component sets the river parameter maps including a boolean river mask, length, slope.
The river mask is based on the
river_upa
[km2] threshold, by default 30 km2. The length is defined as the distance from the subgrid outlet pixel to the next upstream subgrid outlet pixel. The slope is derived from the subgrid elevation difference between pixels at a half distanceslope_len
[km] up- and downstream from the subgrid outlet pixel, by default 2 km. If a pixel has multiple upstream neighbors the pixel with the largest upstream area is selected. The river elevation is based on the elevation of the river bed at outlet pixels of a cell. A dem_adjust step is added to make sure the elevation of the river bed decreases or stays the same as we go downstream along the river network Manning coefficient is derived based on a lookup table of the streamorder map.Adds model layers:
wflow_river map: river mask [-]
wflow_riverlength map: river length [m]
RiverSlope map: river slope [m/m]
N_River map: Manning coefficient for river cells [add]
RiverZ map: elevation of the river bed for rivercells only [m]
rivers geom: river vector based on wflow_river mask
- Parameters
hydrography_fn (str, path) – Name of data source for basemap parameters, see data/data_sources.yml. Must be same as setup_basemaps for consitent results.
river_upa (float) – minimum upstream area threshold for the river map [km2]
slope_len (float) – length over which the river slope is calculated [km]
min_rivlen_ratio (float) – minimum global river length to avg. cell resolution ratio, by default 0.1