Wflow model

Initialize

WflowModel([root, mode, config_fn, …])

This is the wflow model class

Build components

WflowModel.setup_config(**cfdict)

Update config with a dictionary

WflowModel.setup_basemaps(region[, res, …])

This component sets the region of interest and res (resolution in degrees) of the model.

WflowModel.setup_rivers([hydrography_fn, …])

This component sets the river parameter maps including a boolean river mask, length, slope.

WflowModel.setup_lakes([lakes_fn, min_area])

This component generates maps of lake areas and outlets as well as parameters with average lake area, depth a discharge values.

WflowModel.setup_reservoirs([reservoirs_fn, …])

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.

WflowModel.setup_glaciers([glaciers_fn, …])

This component generates maps of glacier areas, area fraction and volume fraction, as well as tables with temperature thresohld, melting factor and snow-to-ice convertion fraction.

WflowModel.setup_lulcmaps([lulc_fn, …])

This component derives several wflow maps are derived based on landuse- landcover (LULC) data.

WflowModel.setup_laimaps([lai_fn])

This component sets leaf area index (LAI) climatoloy maps per month.

WflowModel.setup_soilmaps([soil_fn, ptf_ksatver])

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.

WflowModel.setup_riverwidth([predictor, …])

This component sets the river width parameter based on a power-lay relationship with a predictor.

WflowModel.setup_gauges([gauges_fn, …])

This components sets the default gauge map based on basin outlets and additional gauge maps based on gauges_fn data.

WflowModel.setup_precip_forcing([precip_fn, …])

Setup gridded precipitation forcing at model resolution.

WflowModel.setup_temp_pet_forcing([…])

Setup gridded reference evapotranspiration forcing at model resolution.

WflowModel.setup_constant_pars(**kwargs)

Setup constant parameter maps.

Model specific attributes

WflowModel.flwdir

Returns the pyflwdir.FlwdirRaster object parsed from the wflow ldd.

WflowModel.basins

Returns a basin(s) geometry as a geopandas.GeoDataFrame.

WflowModel.rivers

Returns a river geometry as a geopandas.GeoDataFrame.

Model specific methods

WflowModel.set_flwdir([ftype])

Parse pyflwdir.FlwdirRaster object parsed from the wflow ldd

WflowModel.clip_staticmaps(region[, buffer, …])

Clip staticmaps to subbasin.

WflowModel.clip_forcing([crs])

Return clippped forcing for subbasin.