iMOD-Python: work with iMOD MODFLOW models in Python

Work with iMOD MODFLOW models in Python.

Documentation: https://imod.xyz/

Source code: https://gitlab.com/deltares/imod/imod-python

Getting started

Install the latest release using conda install -c conda-forge imod, or, when not using Anaconda, pip install imod. For more detailed installation information see Installation.

import imod

# read and write IPF files to pandas DataFrame
df = imod.ipf.read('wells.ipf')
imod.ipf.save('wells-out.ipf', df)

# get all calculated heads in a xarray DataArray
# with dimensions time, layer, y, x
da = imod.idf.open('path/to/results/head_*.idf')

Authors

This Python package was written primarily by Martijn Visser and Huite Bootsma at Deltares.

Indices and tables