Skip to main content

nlmod module by Artesia

Project description

nlmod Codacy Badge Codacy Badge PyPI version

nlmod

Python package with functions to process, build and visualise MODFLOW models in the Netherlands.

The functions in nlmod have four main objectives:

  1. Create and adapt the temporal and spatial discretization of a MODFLOW model using an xarray Dataset. These functions are contained in nlmod.dims
  2. Read data from external sources, project this data on the modelgrid and add this data to an xarray Dataset. These functions are contained in nlmod.read
  3. Use data in an xarray Dataset to build modflow packages using flopy. The functions for modflow 6 packages are in nlmod.gwf, for modpath in nlmod.modpath.
  4. Visualise modeldata in Python or GIS software. These functions are contained in nlmod.plot and nlmod.gis.

External data sources that can be read are:

  • AHN, digital elevation model
  • bgt, surface water level geometries
  • Geotop, subsurface model
  • Jarkus, bathymetry
  • KNMI, precipitation and evaporation
  • REGIS, subsurface model
  • Rijkswaterstaat, surface water polygons
  • multiple waterboards, surface water level data

Installation

Install the module with pip:

pip install nlmod

nlmod has many dependencies xarray, flopy, rasterio, rioxarray, owslib, hydropandas, netcdf4, pyshp, rtree, openpyxl and matplotlib.

When using pip the dependencies are automatically installed. Some dependencies are notoriously hard to install on certain platforms. Please see the dependencies section of the hydropandas package for more information on how to install these packages manually.

Getting started

If you are using nlmod for the first time you need to download the MODFLOW executables. You can easily download these executables by running this Python code:

import nlmod
nlmod.util.download_mfbinaries()

After you've downloaded the executables you can run the Jupyter Notebooks in the examples folder. These notebooks illustrate how you to use the nlmod package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlmod-0.4.0.tar.gz (1.8 MB view hashes)

Uploaded Source

Built Distribution

nlmod-0.4.0-py3-none-any.whl (1.8 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page