DemissionModel#

The DemissionModel class represents the D-Emission model implementation.

DemissionModel([root, mode, ...])

Demission model class.

Setup methods#

DemissionModel.setup_config(data)

Set the config dictionary at key(s) with values.

DemissionModel.setup_basemaps(region[, maps])

Prepare demission schematization using the hydromodel region and resolution.

DemissionModel.setup_monitoring([...])

Prepare Delwaq monitoring points and areas options.

DemissionModel.setup_emission_raster(emission_fn)

Prepare one or several emission map from raster data.

DemissionModel.setup_emission_vector(emission_fn)

Prepare emission map from vector data.

DemissionModel.setup_emission_mapping(region_fn)

Derive several emission maps based on administrative boundaries.

DemissionModel.setup_roads(roads_fn, ...[, ...])

Prepare roads statistics needed for emission modelling.

DemissionModel.setup_hydrology_forcing(...)

Prepare Demission hydrological fluxes.

DemissionModel.setup_climate_forcing(...[, ...])

Prepare Delwaq climate fluxes.

Components#

If you are using python, you can access and update the model data using the components such as config, staticdata etc. This is for example useful for computing statictics, plotting etc. The components data are usually xarray, dictionary or geopandas objects and can be accessed via the data property: model.staticdata.data. The components of the DemissionModel are;

Model Component

Component class

model.config

DemissionConfigComponent

model.staticdata

DelwaqStaticdataComponent

model.geometry

DemissionGeometryComponent

model.forcing

DemissionForcingComponent

model.hydromaps

DelwaqHydromapsComponent

model.geoms

GeomsComponent

Component-level API#

The table below summarizes the important methods and attributes for each component. These allow for fine-grained reading, writing, modification, and inspection of component data. They are particularly useful when working interactively in Python, for example when updating specific configuration parameters, clipping static maps, or inspecting the forcing data.

Each component exposes a data attribute, which holds the underlying model data (e.g. dict, xarray.Dataset, or geopandas.GeoDataFrame), and supports a common set of I/O and manipulation methods such as read(), write(), and set().

For general I/O at the model level, refer to: WflowSbmModel and its read() and write() methods.

The following table provides a detailed overview of the component-level APIs.

The GeomsComponent is inherited from HydroMT core and documented in hydromt.model.components.GeomsComponent

I/O methods#

If you are using python, you can read and write the different model components using the methods below.

DelwaqModel.build(*[, write])

Single method to build a model from scratch based on settings in steps.

DelwaqModel.update(*[, model_out, write, ...])

Single method to update a model based the settings in steps.

DemissionModel.read()

Read the complete model schematization and configuration from file.

DemissionModel.write()

Write the complete model schematization and configuration to file.

DemissionModel.write_waqgeom()

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

Attributes#

DemissionModel.crs

Returns coordinate reference system embedded in region.

DemissionModel.root

Model root

DemissionModel.basins

Derive basins from geoms or hydromaps.

DemissionModel.nrofseg

Number of segments.

DemissionModel.nrofexch

Number of exchanges.

DemissionModel.fluxes

List of fluxes.