API reference#
Wflow model class#
Initialize#
|
This is the wflow model class |
Setup components#
|
Update config with a dictionary. |
|
This component sets the |
|
This component sets the all river parameter maps. |
|
This components adds floodplain information to the model schematistation. |
|
This component generates maps of lake areas and outlets as well as parameters with average lake area, depth and discharge values. |
|
This component generates maps of reservoir areas and outlets as well as parameters with average reservoir area, demand, min and max target storage capacities and discharge capacity values. |
|
This component generates maps of glacier areas, area fraction and volume fraction, as well as tables with temperature threshold, melting factor and snow-to-ice convertion fraction. |
|
This component derives several wflow maps are derived based on landuse- landcover (LULC) data. |
|
This component sets leaf area index (LAI) climatology maps per month. |
|
This component sets up the RootingDepth by estimating the catchment-scale root-zone storage capacity from observed hydroclimatic data (and optionally also for climate change historical and future periods). |
|
This component derives several (layered) soil parameters based on a database with physical soil properties using available point-scale (pedo)transfer functions (PTFs) from literature with upscaling rules to ensure flux matching across scales. |
|
This components sets the default gauge map based on basin outlets. |
|
This components sets a gauge map based on |
|
Setup area map from vector data to save wflow outputs for specific area. |
This components sets the default gauge map based on basin outlets. |
|
|
Setup gridded precipitation forcing at model resolution. |
Setup gridded reference evapotranspiration forcing at model resolution. |
|
|
Setup constant parameter maps for all active model cells. |
This component adds data variable(s) from |
Attributes#
Returns the geometry of the model area of interest. |
|
Returns coordinate reference system embedded in region. |
|
Returns the resolution of the model staticmaps. |
|
Path to model folder. |
|
Model configuration. |
|
Model static maps. |
|
Access the geometryes. |
|
Model forcing. |
|
Model states. |
|
Model results. |
|
Returns a dictionary of pandas.DataFrames representing the wflow intbl files. |
|
Returns the pyflwdir.FlwdirRaster object parsed from the wflow ldd. |
|
Returns a basin(s) geometry as a geopandas.GeoDataFrame. |
|
Returns a river geometry as a geopandas.GeoDataFrame. |
High level methods#
Method to read the complete model schematization and configuration from file. |
|
Method to write the complete model schematization and configuration to file. |
|
|
Single method to build a model from scratch based on settings in opt. |
|
Single method to update a model based the settings in opt. |
|
Initialize the model root. |
General methods#
|
Update config with a dictionary. |
|
Get a config value at key(s). |
|
Update the config dictionary at key(s) with values. |
|
Parse config from file. |
|
Write config to <root/config_fn>. |
|
Add data to staticmaps. |
|
Read staticmaps |
Write staticmaps |
|
|
Clip staticmaps to subbasin. |
Read and staticmaps at <root/staticmaps> and parse to xarray |
|
Write staticmaps at <root/staticmaps> in PCRaster maps format. |
|
|
Set the geometries. |
Read and staticgeoms at <root/staticgeoms> and parse to geopandas |
|
Write staticmaps at <root/staticgeoms> in model ready format |
|
|
Add data to forcing attribute. |
Read forcing |
|
|
write forcing at |
|
Return clippped forcing for subbasin. |
|
Add data to states attribute. |
Read states at <root/?/> and parse to dict of xr.DataArray |
|
write states at <root/?/> in model ready format |
|
|
Add data to results attribute. |
Read results at <root/?/> and parse to dict of xr.DataArray/xr.Dataset |
|
|
Add table <pandas.DataFrame> to model. |
|
Read table files at <root> and parse to dict of dataframes |
Write tables at <root>. |
|
|
Parse pyflwdir.FlwdirRaster object parsed from the wflow ldd |
WflowSediment model class#
Initialize#
|
This is the wflow sediment model class, a subclass of WflowModel |
Setup components#
|
Update config with a dictionary. |
|
This component sets the |
|
This components copies the functionality of WflowModel, but removes the river_routing key from the config |
|
This component generates maps of lake areas and outlets as well as parameters with average lake area, depth a discharge values. |
|
This component generates maps of lake areas and outlets as well as parameters with average reservoir area, demand, min and max target storage capacities and discharge capacity values. |
|
This component derives several wflow maps are derived based on landuse- landcover (LULC) data. |
|
This component sets leaf area index (LAI) climatology maps per month. |
|
Setup sediments based canopy height maps. |
|
Setup sediments based soil parameter maps. |
This component sets the river width parameter based on a power-lay relationship with a predictor. |
|
Setup sediments based river bed characteristics maps. |
|
This components sets the default gauge map based on basin outlets. |
|
|
This components sets a gauge map based on |
|
Setup area map from vector data to save wflow outputs for specific area. |
This components sets the default gauge map based on basin outlets. |
|
Setup constant parameter maps for all active model cells. |
|
This component adds data variable(s) from |
Attributes#
Returns the geometry of the model area of interest. |
|
Returns coordinate reference system embedded in region. |
|
Returns the resolution of the model staticmaps. |
|
Path to model folder. |
|
Model configuration. |
|
Model static maps. |
|
Access the geometryes. |
|
Model forcing. |
|
Model states. |
|
Model results. |
|
Returns the pyflwdir.FlwdirRaster object parsed from the wflow ldd. |
|
Returns a basin(s) geometry as a geopandas.GeoDataFrame. |
|
Returns a river geometry as a geopandas.GeoDataFrame. |
High level methods#
Method to read the complete model schematization and configuration from file. |
|
Method to write the complete model schematization and configuration to file. |
|
|
Single method to build a model from scratch based on settings in opt. |
|
Single method to update a model based the settings in opt. |
|
Initialize the model root. |
General methods#
|
Update config with a dictionary. |
|
Get a config value at key(s). |
Update the config dictionary at key(s) with values. |
|
|
Parse config from file. |
Write config to <root/config_fn>. |
|
|
Add data to staticmaps. |
|
Read staticmaps |
Write staticmaps |
|
|
Clip staticmaps to subbasin. |
|
Set the geometries. |
Read and staticgeoms at <root/staticgeoms> and parse to geopandas |
|
Write staticmaps at <root/staticgeoms> in model ready format |
|
|
Add data to forcing attribute. |
Read forcing |
|
|
write forcing at |
Return clippped forcing for subbasin. |
|
|
Add data to states attribute. |
Read states at <root/?/> and parse to dict of xr.DataArray |
|
write states at <root/?/> in model ready format |
|
|
Add data to results attribute. |
Read results at <root/?/> and parse to dict of xr.DataArray/xr.Dataset |
|
|
Parse pyflwdir.FlwdirRaster object parsed from the wflow ldd |
Wflow workflows#
|
Returns hydrography maps (see list below) and FlwdirRaster object based on gridded flow direction and elevation data input. |
|
Returns topography maps (see list below) at model resolution based on gridded elevation data input. |
|
Returns river maps |
|
Get river width and bankfull discharge from gdf_riv to estimate river depth using |
|
Returns landuse map and related parameter maps. |
|
Returns soil parameter maps at model resolution based on soil properties from SoilGrids datasets. |
|
Returns soil parameter maps for sediment modelling at model resolution based on soil properties from SoilGrids dataset. |
|
Returns waterbody (reservoir/lake) maps (see list below) at model resolution based on gridded upstream area data input or outlet coordinates. |
|
Returns reservoir attributes (see list below) needed for modelling. |
|
Returns lake attributes (see list below) needed for modelling. |
|
Returns glacier maps (see list below) at model resolution. |
|
Returns glacier intbls (see list below). |
|
Estimates the root zone storage parameter for current observed and (optionally for) future climate-based streamflow data. |
Wflow low-level methods#
Input/Output methods#
|
Read wflow results csv timeseries and parse to dictionnary |