WflowSedimentModel#
The WflowSedimentModel class extends Wflow functionality with sediment transport modeling.
Note
Note that this class inherits from WflowBaseModel and thereby includes all base functionalities, I/O routines, and setup methods from the base model.
Also, note that some setup methods are overridden or extended to include sediment-specific parameters and data.
For a full list of inherited methods and attributes, see WflowBaseModel.
|
The wflow sediment model class, a subclass of WflowBaseModel. |
Setup methods#
These methods are used to add data, parameters, and components to your Wflow Sediment model and to build or update it step by step.
Configuration#
Defines and manages model configuration, global parameters, and output settings.
Set the config dictionary at key(s) with values. |
|
Set the default gauge map based on basin outlets. |
|
|
Generate constant parameter maps for all active model cells. |
Topography and Rivers#
Prepares elevation maps, drainage networks, and sediment-related river properties used to route flow and sediment.
|
Build the DEM and flow direction for a Wflow model. |
|
Set all river parameter maps. |
Set the river width parameter based on power-law relationship with a predictor. |
|
Generate sediments based river bed characteristics maps. |
Reservoirs#
Adds natural and man-made reservoirs and defines their impact on sediment storage and transport.
Generate maps of natural reservoir areas (lakes) and outlets. |
|
|
Generate maps of reservoir areas and outlets. |
Land Use and Vegetation#
Defines land use and vegetation properties that influence sediment erosion and deposition processes.
|
Derive several wflow maps based on landuse-landcover (LULC) data. |
Derive several wflow maps based on vector landuse-landcover (LULC) data. |
|
|
Generate sediments based canopy height maps. |
Soil#
Sets up soil-related data including soil maps.
|
Generate sediments based soil parameter maps. |
Output Locations#
Defines model output points and areas such as outlets, gauges, and spatial masks for reporting results.
Set the default gauge map based on basin outlets. |
|
|
Set a gauge map based on |
|
Set area map from vector data to save wflow outputs for specific area. |
Other Methods#
Additional high-level utilities to manage model geometry, upgrade versions, or modify spatial extent.
Add data variable(s) from |
|
Upgrade the model to wflow v1 format. |
|
|
Clip model to region. |
Components#
If you are using python, you can access and update the model data using the components such as config, staticmaps etc.
This is for example useful for computing statictics, plotting etc.
The components data are usually xarray, dictionnary or geopandas objects and can be accessed via the data property: model.staticmaps.data.
The components of the WflowSbmModel are:
Model Component |
Component class |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Component-level API#
The table below summarizes the important methods and attributes for each component. These allow for fine-grained reading, writing, modification, and inspection of component data. They are particularly useful when working interactively in Python, for example when updating specific configuration parameters, clipping static maps, or inspecting the forcing data.
Each component exposes a data attribute, which holds the underlying model data
(e.g. dict, xarray.Dataset, or geopandas.GeoDataFrame),
and supports a common set of I/O and manipulation methods such as
read(), write(), and set().
For general I/O at the model level, refer to:
WflowSbmModel and its
read() and
write() methods.
The following table provides a detailed overview of the component-level APIs.
Component class |
Methods |
Attributes |
|---|---|---|