Model methods and components#
The HydroMT-Wflow plugin helps you preparing or updating several inputs of a Wflow model such as topography information, landuse, soil or forcing using setup methods. The main interactions are available from the HydroMT Command Line Interface and allow you to configure HydroMT in order to build or update or clip Wflow models.
When building or updating a model from command line a model region; a model setup configuration (.yml file) with model methods and options and, optionally, a data catalog (.yml) file should be prepared.
Model setup methods#
An overview of the available Wflow model setup methods is provided in the tables below. When using HydroMT from the command line only the setup methods are exposed. Click on a specific method to see its documentation.
Configuration (TOML)#
Defines and manages model configuration, global parameters, and output settings.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Update config with a dictionary |
||
Add new variable/column to the netcdf/csv output section of the toml based on a selected gauge/area map. |
||
Setup constant parameter maps for all active model cells. |
Topography and Rivers#
Prepares elevation maps, drainage networks, and river-related features used to simulate flow routing and floodplain processes.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Set the region of interest and res (resolution in degrees) of the model. |
||
Set all river parameter maps. |
||
Set river Manning roughness coefficient. |
||
Add floodplain information (can be either 1D or 2D). |
Reservoirs and Glaciers#
Adds reservoirs and glaciers, and defines their impact on hydrological storage and flow regulation.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Generate maps of uncontrolled reservoirs (lakes, weirs) areas and outlets as well as parameters with average reservoir area, depth a discharge values. |
||
Generate maps of controlled reservoir areas and outlets as well as parameters with average reservoir area, demand, min and max target storage capacities and discharge capacity values. |
||
Generate maps of glacier areas, area fraction and volume fraction, as well as tables with temperature threshold, melting factor and snow-to-ice conversion fraction. |
Land Use and Vegetation#
Defines land use and vegetation properties, including LULC and LAI maps, which influence evapotranspiration and interception processes.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Derive several wflow maps based on landuse- landcover (LULC) raster data. |
||
Derive several wflow maps based on landuse- landcover (LULC) vector data. |
||
Derive several wflow maps based on landuse- landcover (LULC) raster data with paddy rice. |
||
Set leaf area index (LAI) climatology maps per month. |
||
Set leaf area index (LAI) climatology maps per month based on landuse mapping. |
||
Derive an estimate of the rooting depth from hydroclimatic data (as an alternative from the look-up table). The method can be applied for current conditions and future climate change conditions. |
|
Soil#
Sets up soil-related data including soil maps and hydraulic properties.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Derive 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. |
||
Prepare the saturated hydraulic conductivity horizontal ratio from an existing map. |
||
Prepare ksatver from soil and vegetation parameters. |
|
Water demands and Allocation#
Defines domestic, irrigation, and other water demand maps and allocation parameters.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Create water demand allocation areas. |
||
Create fraction of surface water used for allocation of the water demands. |
||
Create domestic water demand from grid. |
||
Create domestic water demand using demand per capita and gridded population. |
||
Create other water demand (eg industry, livestock). |
||
Create irrigation areas and trigger for paddy and nonpaddy crops from a raster file. |
|
|
Create irrigation areas and trigger for paddy and nonpaddy crops from a vector file. |
|
Forcing#
Sets up meteorological forcing inputs such as precipitation, temperature, and potential evapotranspiration.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Setup gridded precipitation forcing at model resolution. |
||
Setup precipitation forcing from station data at model resolution. |
||
Setup gridded temperature and optionally compute reference evapotranspiration forcing at model resolution. |
||
Setup gridded reference evapotranspiration forcing at model resolution. |
States#
Defines initial hydrological state variables such as soil moisture and groundwater storage.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Setup wflow cold states based on data in staticmaps. |
|
Output Locations#
Defines outlets, gauges, and spatial masks used for reporting model results.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Set the default gauge map based on basin outlets. |
||
Set the default gauge map based on a gauges_fn data. |
||
Setup area map from vector data to save wflow outputs for specific area. |
Other Setup Methods#
Additional high-level utilities to modify model geometry, link external models, or upgrade model versions.
Method |
Explanation |
Required Setup Method |
|---|---|---|
Setup subbasins and gauges to save results from wflow to be used in 1D river models. |
||
Setup staticmaps from raster to add parameters from direct data. |
||
Upgrade a model from a Wflow.jl 0.x to 1.0 . |
||
Clip a sub-region of an existing model. |
Model components#
The following table provides an overview of which WflowSbmModel
components contains which Wflow in- and output files. The files are read and written with the associated
read- and write- methods, i.e. read()
and write() for the
config component.
|
Wflow files |
|---|---|
|
wflow_sbm.toml |
|
staticmaps.nc |
|
geometries from the staticgeoms folder (basins.geojson, rivers.geojson etc.) |
|
inmaps.nc |
|
instates.nc |
|
tabular data (csv format, e.g. lake_hq.csv, lake_sh.csv) |
|
output.nc (defined in [output.netcdf_grid] TOML section) |
|
output_scalar.nc (defined in [output.netcdf_scalar] TOML section) |
|
output.csv (defined in [output.csv] TOML section) |