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 three 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.mdims
  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. These functions are contained in nlmod.mfpackages

External data sources that can be read are:

  • REGIS, subsurface model
  • Geotop, subsurface model
  • KNMI, precipitation and evaporation
  • Jarkus, bathymetry
  • Rijkswaterstaat, surface water polygons

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.3.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlmod-0.3.0-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file nlmod-0.3.0.tar.gz.

File metadata

  • Download URL: nlmod-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for nlmod-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a141a32f218c007ae4279b2448561cf8b96812b18d7202812dfcda46aa0f87ea
MD5 c0a78b5a798274f8e5fa4f5bf73485ad
BLAKE2b-256 e3ed4db0f91302fc073eda407c04035422883159bb2b1822fe0d34f0e5122107

See more details on using hashes here.

File details

Details for the file nlmod-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nlmod-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for nlmod-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ceeff67df26ce0b00d5d4c6810f1bfef809df590408235bc2ac6921e79d2ca
MD5 c7393138ebae519465d6bfd2c68658de
BLAKE2b-256 a5d36c45a885ff7d867a9399869f84b85dc8e1f8d5d90a789690dd7394b956d3

See more details on using hashes here.

Supported by

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