iMOD5 backwards compatibility#
iMOD Python tries to be as backwards compatible with iMOD5 as our resources allow. Below you can find some known issues, notes, and more detailed tables with the status of support for important iMOD5 features. If you miss an important feature or run into any issues, feel free to open an issue on our issueboard.
Known issues#
Constants are only supported for the CAP package. For other packages, the constants will cause an error.
ISG files cannot be read directly. The workaround is to rasterize the ISG files to IDF files using the iMOD5 BATCH function ISGGRID.
MetaSWAP sprinkling wells defined as IPF files are not supported.
MetaSWAP’s “flexible drainage” (“Peilgestuurde drainage” in Dutch) is not supported.
IPEST is not supported.
Notes#
if STO package in projectfile is absent, an error is thrown when trying to write the
imod.mf6.Modflow6Simulation
object to disk. This is due to the fact that the STO package is mandatory in iMOD Python. A workaround is to add aimod.mf6.StorageCoefficient
package to the projectfile before callingimod.mf6.Modflow6Simulation.write()
.When importing models with the ANI package, make sure to activate the “XT3D” in the NodePropertyFlow package of the model.
Solver settings (PCG) are NOT imported from iMOD5, instead a solver settings preset from MODFLOW6 (“Moderate”) is set. This is because the solvers between iMODLFOW and MODFLOW6 are different. You are advised to test settings yourself.
The imported iMOD5 discretization for the model is created by taking the smallest grid and finest resolution amongst the TOP, BOT, and BND grids. This differs from iMOD5, where the first BND grid is used as target grid. All input grids are regridded towards this target grid. Therefore, be careful when you have a very fine resolution in one of these packages.
Files#
Here an overview of iMOD5 files supported:
iMOD5 file |
iMOD Python function |
Workaround |
---|---|---|
Open projectfile data (.prj) |
|
|
Open runfile data (.run) |
Convert to |
|
Open point data (.ipf) |
||
Save point data (.ipf) |
||
Open raster data (.idf) |
||
Save raster data (.idf) |
||
Open vector data: 2D & 3D (.gen) |
||
Save vector data (.gen) |
||
Open 1D network data (.isg) |
Rasterize to |
|
Open raster data (.asc) |
||
Open legend file (.leg) |
MODFLOW6#
Here an overview of iMOD5 MODFLOW6 features:
iMOD5 pkg |
functionality |
iMOD Python function/method |
---|---|---|
Model |
From iMOD5 data |
|
Model |
Regrid |
|
Model |
Clip |
|
Model |
Validate |
|
BND |
IBOUND to IDOMAIN |
|
BND, TOP, BOT |
Import from grid (IDF) |
|
BND, TOP, BOT |
Align iMOD5 input grids |
|
BND, TOP, BOT |
Regrid |
|
BND, TOP, BOT |
Clip |
|
BND, SHD |
set constant heads starting head (IBOUND = -1) |
|
BND, CHD |
set constant heads (IBOUND = -1) |
|
KDW, VCW, KVV, THK |
Quasi-3D permeability from grid (IDF) |
Quasi-3D is only supported by MODFLOW2005. MODFLOW6 requires fully 3D. |
KHV, KVA |
3D permeability from grid (IDF) |
|
ANI |
Set horizontal anistropy |
|
KHV, KVA, ANI |
Align iMOD5 input grids |
|
KHV, KVA, ANI |
Regrid |
|
KHV, KVA, ANI |
Clip |
|
STO, SPY |
From grid (IDF) |
|
STO, SPY |
Regrid |
|
STO, SPY |
Clip |
|
RCH |
From grid (IDF) |
|
RCH |
Regrid |
|
RCH |
Clip |
|
CHD |
From grid (IDF) |
|
CHD |
Regrid |
|
CHD |
Clip |
|
GHB |
Auto placement (IDEFLAYER) |
|
GHB |
Distribute conductances (DISTRCOND) |
|
GHB |
Cleanup |
|
GHB |
From grid (IDF) |
|
GHB |
Align iMOD5 input grids |
|
GHB |
Regrid |
|
GHB |
Clip |
|
DRN |
Auto placement (IDEFLAYER) |
|
DRN |
Distribute conductances (DISTRCOND) |
|
DRN |
Cleanup |
|
DRN |
From grid (IDF) |
|
DRN |
Align iMOD5 input grids |
|
DRN |
Regrid |
|
DRN |
Clip |
|
RIV |
Infiltration factors (IFF) |
|
RIV |
Auto placement (IDEFLAYER) |
|
RIV |
Distribute conductances (DISTRCOND) |
|
RIV |
Cleanup |
|
RIV |
From grid (IDF) |
|
RIV |
Align iMOD5 input grids |
|
RIV |
Regrid |
|
RIV |
Clip |
|
ISG, SFT |
From 1D network (ISG) |
|
SFR |
From 1D network (ISG) |
|
HFB |
From 2D vector (GEN) |
|
HFB |
From 3D vector (GEN) |
|
HFB |
Snap vector to grid edges |
|
HFB |
Auto placement, account for not fully penetrating barriers |
|
HFB |
Clip |
|
HFB |
Cleanup |
|
WEL |
From point data with timeseries (IPF) |
|
WEL |
Auto placement |
|
WEL |
Cleanup |
|
WEL |
Clip |
MetaSWAP#
An overview of the support for iMOD5’s MetaSWAP features:
iMOD5 pkg |
MetaSWAP file |
functionality |
iMOD Python function/method |
---|---|---|---|
Model |
|
From grids (IDF) |
|
Model |
Regrid |
||
Model |
Clip |
||
Model |
|
Coupling |
|
Model |
|
IDF output |
|
CAP |
|
Grid Data |
|
CAP |
|
Ponding |
|
CAP |
|
Infiltration |
|
CAP |
|
Perched Water Table |
|
CAP |
|
Scaling factors |
|
CAP |
Stage-steered drainage |
||
CAP |
|
Meteogrids |
|
CAP |
|
Meteostations |
|
CAP |
|
Sprinkling |
|
CAP |
Sprinkling wells grid (IDF) |
||
CAP |
Sprinkling wells points (IPF) |
||
CAP |
Align iMOD5 input grids |
Postprocessing#
The following post-processing features are supported:
iMOD5 functionality |
iMOD Python function/method |
---|---|
Open heads |
|
Open budgets |
|
Compute GXG |
|
Compute waterbalance |
Visualization#
The following visualization features are supported. For interactively viewing your data, see our iMOD Viewer.
iMOD5 functionality |
iMOD Python function/method |
---|---|
Plot cross-section |
|
Plot map |
|
Quiverplot |
|
Streamplot |
|
Water balance |
|
3D plot |