DemissionModel#
The DemissionModel class represents the D-Emission model implementation.
|
Demission model class. |
Setup methods#
Set the config dictionary at key(s) with values. |
|
|
Prepare demission schematization using the hydromodel region and resolution. |
Prepare Delwaq monitoring points and areas options. |
|
|
Prepare one or several emission map from raster data. |
|
Prepare emission map from vector data. |
|
Derive several emission maps based on administrative boundaries. |
|
Prepare roads statistics needed for emission modelling. |
Prepare Demission hydrological fluxes. |
|
|
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 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
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.
Component class |
Methods |
Attributes |
|---|---|---|
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.
|
Single method to build a model from scratch based on settings in steps. |
|
Single method to update a model based the settings in steps. |
Read the complete model schematization and configuration from file. |
|
Write the complete model schematization and configuration to file. |
|
Write Delwaq netCDF geometry file (config/B3_waqgeom.nc). |
Attributes#
Returns coordinate reference system embedded in region. |
|
Model root |
|
Derive basins from geoms or hydromaps. |
|
Number of segments. |
|
Number of exchanges. |
|
List of fluxes. |