Model processes#
HydroMT uses processes functions to transform raw input data into model-ready inputs and parameters. These processes can be as simple as reprojecting a raster dataset to the model grid, or more complex operations like delineating a river network based on a digital elevation model (DEM).
Processes are only available through the Python API and are usually the backbone of the model
and components setup_ or add_data_ methods. HydroMT proposes a collection of methods
that can be re-used in your python scripts or when developing your own plugins.
Grid#
These methods allow to either create a grid or add data to an existing grid from different data sources.
Processes |
Description |
|---|---|
Create a 2D regular grid from a specified region. |
|
Create a rotated grid based on a geometry. |
|
Add data to a grid using a constant value. |
|
Add data to a grid by resampling a raster dataset. |
|
Reclassify raster data and add it to a grid. |
|
Add data to a grid by rasterizing a GeoDataFrame. |
|
Return the origin (x0, y0), shape (mmax, nmax) and rotation of the rotated grid. |
Mesh#
These methods allow to either create a mesh or add data to an existing mesh from different data sources.
Processes |
Description |
|---|---|
Create a 2D mesh from a specified region according to UGRID conventions. |
|
Create a 2D mesh based on an existing mesh. |
|
Create a regular 2D mesh from a boundary geometry. |
|
Add data to a mesh by resampling a raster dataset. |
|
Reclassify raster data and add it to a mesh. |
Region#
These methods allow to parse different region definitions (from the HydroMT region dictionary) for setting up a model region.
Processes |
Description |
|---|---|
Parse a hydrographic basin region definition. |
|
Parse a bounding box region definition. |
|
Parse a geometry file region definition. |
|
Parse a raster grid file region definition. |
|
Parse a region definition based on another HydroMT model. |
|
Parse a mesh file region definition. |
Basin mask#
This method allows to delineate hydrographic regions (basin, interbasin, subbasin) using the region dictionary and a hydrography (DEM, flow direction) dataset.
Processes |
Description |
|---|---|
Return a geometry of the (sub)(inter)basin(s). |
River bathymetry#
These methods allow to estimate river channel dimensions based on either direct cross-section information or empirical relationships.
Processes |
Description |
|---|---|
Return average river width along a segment based on a river mask raster. |
|
Derive river depth estimates from data or based on bankfull discharge. |
Meteo#
These methods allow to process meteorological data for use in gridded models. This includes time resampling, downscaling, and calculation of potential evapotranspiration.
Processes |
Description |
|---|---|
Process precipitation data. |
|
Process temperature data. |
|
Process atmospheric pressure data. |
|
Determine reference evapotranspiration. |
|
Process wind speed data. |
|
Pressure correction based on elevation lapse_rate. |
|
Temperature correction based on elevation data. |
|
Resample meteorological data to a different time frequency. |
|
Calculate potential evapotranspiration using De Bruin method. |
|
Calculate potential evapotranspiration using Makkink method. |
|
Calculate potential evapotranspiration using Penman-Monteith FAO56 method. |