DELWAQ model

Initialize

DelwaqModel([root, mode, config_fn, mtype, …])

This is the delwaq model class

Build components

DelwaqModel.setup_config(**cfdict)

Update config with a dictionary

DelwaqModel.setup_basemaps(region[, …])

Setup the delwaq model schematization using the hydromodel region and resolution.

DelwaqModel.setup_monitoring(mon_points, …)

Setup Delwaq monitoring points and areas options.

DelwaqModel.setup_hydrology_forcing(…[, …])

Setup Delwaq hydrological fluxes.

DelwaqModel.setup_emission_raster(emission_fn)

Setup one or several emission map from raster data.

DelwaqModel.setup_emission_vector(emission_fn)

Setup emission map from vector data.

DelwaqModel.setup_emission_mapping(source_name)

This component derives several emission maps based on administrative boundaries.

Model specific attributes

DelwaqModel.basins

DelwaqModel.hydromaps

xarray.dataset representation of all hydrology maps

Model specific methods

DelwaqModel.set_hydromaps(data[, name])

Add data to hydromaps re-using the set_staticmaps method

Model specific I/O methods

High level I/O methods

DelwaqModel.read_hydromaps([crs])

Read hydromaps at <root/hydromodel> and parse to xarray

DelwaqModel.write_hydromaps()

Write hydromaps at <root/hydromodel> in PCRaster maps format.

DelwaqModel.read_pointer()

Read Delwaq pointer file

DelwaqModel.write_pointer()

Write pointer at <root/dynamicdata> in ASCII and binary format.

DelwaqModel.read_geometry()

Read Delwaq EM geometry file

DelwaqModel.write_geometry()

Write geometry at <root/staticdata> in ASCII and binary format.

Intermediate I/O methods

DelwaqModel.write_monitoring(monpoints, monareas)

Writes monitoring files and config in ASCII format.

DelwaqModel.dw_WriteSegmentOrExchangeData(…)

Writes a timestep to a segment/exchange data file (appends to an existing file or creates a new one).

DelwaqModel.dw_WriteWaqGeom()

Writes Delwaq netCDF geometry file (config/B3_waqgeom.nc).