D-HyMOD Link is a Python package that links D-Hydro and iMOD. This tool converts D-Hydro output to iMOD input (isg).
The initial version was developed by Haskoning for Waterschap Brabantse Delta and further enhanced by Waterschap Aa & Maas. In 2025, the tool was open-sourced with support from Waterboard De Dommel.
- Export D-Hydro models to ISG format, supporting segments, cross-sections, and water levels at calculation points (time series).
- Read both D-Hydro and ISG formats into a standardized format (STF), which can be edited in GIS and exported to ISG.
The tool generates ISG files without surface-flow routing (ASFR=0). Supported parameters:
| Parameter | Description | Source |
|---|---|---|
| Water level | Water level at the calculation node for the defined period | D-Hydro model |
| Bottom level | Bottom level at the calculation node | D-Hydro model |
| Resistance | River bed resistance at the calculation node (days) | Manual input |
| Inf.factor | Infiltration factor at the calculation node (-) | Manual input |
| mrc | Manning’s Resistance Coefficient for the cross-section (-) | Manual input |
Note: Q-H relationships and structures are not supported.
- The code has been tested on a limited set of D-Hydro models. Please validate the output before use.
- If you need additional functionality, create a branch and propose a solution via GitHub.
- For bugs, please create an issue (and, if possible, a proposed fix).
- The tool depends on
hydrolib-core. Unsupported model versions may cause errors.
-
Install via pip:
pip install dhymod_link
-
Documentation in the example notebook: examples folder demonstrates reading a D-Hydro model and exporting to ISG.
- Bugfix coupling cross sections to segments
- Rename tool to D-HyMOD Link
- First release
- Minor textual improvements
- Removed hydrolib-core dependency
- Published open source under GPL v3 license
- Added pip installation support
- Added example notebooks
- Migrated environment file to
pyproject.tomland updated dependencies - Improved aggregation of water levels over defined periods
- Updated environment and hydrolib-core version (Python < 3.12, tested with 3.11.6)
- Required
pydantic = 1.10for hydrolib-core compatibility - New environment file:
environment - new HL.yml - Improved snapping of calculation points to waterlines using buffer + spatial join (sjoin), replacing
ckdnearest - Added aggregation window option for final calculation period (e.g., "1D" for last day, with "mean" or "min" aggregation)
- Default: 1-day window, mean aggregation
Product Owner