API reference#
Wflow model class#
Initialize#
|
Read or Write a wflow model. |
Setup components#
|
Build the DEM and flow direction for a Wflow model. |
|
Set all river parameter maps. |
|
Add floodplain information to the model schematisation. |
|
Generate maps of lake areas and outlets. |
|
Generate maps of reservoir areas and outlets. |
|
Generate maps of glacier areas, area fraction and volume fraction. |
|
Derive several wflow maps based on landuse-landcover (LULC) data. |
Derive several wflow maps based on vector landuse-landcover (LULC) data. |
|
|
Set up landuse maps and parameters including for paddy fields. |
|
Set leaf area index (LAI) climatology maps per month [1,2,3,...,12]. |
Derive cyclic LAI maps from a LULC data source and a LULC-LAI mapping table. |
|
|
Create water demand allocation areas. |
Create the fraction of water allocated from surface water. |
|
|
Prepare domestic water demand maps from a raster dataset. |
Prepare domestic water demand maps from statistics per capita. |
|
|
Create water demand maps from other sources (e.g. industry, livestock). |
|
Add required information to simulate irrigation water demand from grid. |
Add required information to simulate irrigation water demand from vector. |
|
|
Set KsatHorFrac parameter values from a predetermined map. |
Calculate KsatVer values from vegetation in addition to soil characteristics. |
|
|
Set the RootingDepth. |
|
Derive several (layered) soil parameters. |
|
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. |
Set the default gauge map based on basin outlets. |
|
|
Generate gridded precipitation forcing at model resolution. |
Generate gridded precipitation from point timeseries (requires wradlib). |
|
|
Generate gridded temperature and reference evapotranspiration forcing. |
|
Prepare PET forcing from existig PET data. |
|
Generate constant parameter maps for all active model cells. |
|
Connect wflow to a 1D model by deriving linked subcatch (and tributaries). |
|
Add data variable(s) from |
|
Prepare cold states for Wflow. |
Upgrade the model to wflow v1 format. |
Attributes#
Return the model's region component. |
|
Returns coordinate reference system embedded in region. |
|
Model root |
High level methods#
|
Read provided components from disk. |
|
Write the complete model schematization and configuration to file. |
|
Single method to build a model from scratch based on settings in steps. |
|
Single method to update a model based the settings in steps. |
General methods#
WflowSediment model class#
Initialize#
|
The wflow sediment model class, a subclass of WflowModel. |
Setup components#
|
Build the DEM and flow direction for a Wflow model. |
|
Set all river parameter maps. |
|
Generate maps of lake areas and outlets. |
|
Generate maps of reservoir areas and outlets. |
|
Derive several wflow maps based on landuse-landcover (LULC) data. |
Derive several wflow maps based on vector landuse-landcover (LULC) data. |
|
|
Set leaf area index (LAI) climatology maps per month [1,2,3,...,12]. |
Derive cyclic LAI maps from a LULC data source and a LULC-LAI mapping table. |
|
|
Generate sediments based canopy height maps. |
|
Generate sediments based soil parameter maps. |
Set the river width parameter based on power-law relationship with a predictor. |
|
Generate sediments based river bed characteristics maps. |
|
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. |
Set the default gauge map based on basin outlets. |
|
|
Generate constant parameter maps for all active model cells. |
Add data variable(s) from |
|
Upgrade the model to wflow v1 format. |
Attributes#
Return the model's region component. |
|
Returns coordinate reference system embedded in region. |
|
Model root |
High level methods#
|
Read provided components from disk. |
|
Write the complete model schematization and configuration to file. |
|
Single method to build a model from scratch based on settings in steps. |
|
Single method to update a model based the settings in steps. |
Wflow workflows#
|
Create water allocation area. |
|
Create surface water fraction map. |
|
Create domestic water demand maps. |
|
Create domestic water demand maps from statitics per capita. |
|
Create non-irrigation water demand maps. |
|
Prepare irrigation maps for paddy and non paddy. |
|
Prepare irrigation maps for paddy and non paddy from geodataframe. |
|
Return hydrography maps (see list below) and FlwdirRaster object. |
|
Return topography maps (see list below) at model resolution. |
|
Return river maps. |
|
Get river width and bankfull discharge. |
|
Resample and reproject PET to the grid of ds_like. |
|
Interpolate spatial forcing data from station observations to a regular grid. |
|
Return landuse map and related parameter maps. |
|
Derive several wflow maps based on vector landuse-landcover (LULC) data. |
|
Return climatology of Leaf Area Index (LAI). |
Derive LAI values per landuse class. |
|
|
Derive LAI values from a landuse map and a mapping table. |
|
Burn paddy fields into landuse map and update mapping table. |
Update USLE C map with planted forest and orchard data. |
|
|
Create KsatHorfrac map. |
|
Calculate saturated hydraulic conductivity based on soil and vegetation [mm/d]. |
|
Return soil parameter maps at model resolution. |
|
Return soil parameter maps for sediment modelling at model resolution. |
|
Determine Brooks Corey coefficient per wflow soil layer depth. |
|
Update c and kvfrac soil properties for paddy fields. |
|
Return waterbody (reservoir/lake) maps (see list below). |
|
Return reservoir attributes (see list below) needed for modelling. |
|
Return lake attributes (see list below) needed for modelling. |
|
Return glacier maps (see list below) at model resolution. |
|
Return glacier intbls (see list below). |
|
Estimates the root zone storage parameter. |
|
Connect wflow to a 1D model by deriving linked subcatchs (and tributaries). |
|
Prepare cold states for Wflow. |
Wflow low-level methods#
Utility methods#
|
Get actual grid values from config including scale and offset. |