Skip to main content

nlmod module by Artesia

Project description

nlmod

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, 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.1.0.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

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

nlmod-0.1.0-py3-none-any.whl (64.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nlmod-0.1.0.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for nlmod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1bea849a2c79f51196ef920044835c463993b25866cd5a7fa9d417e53bcf7a3b
MD5 a83fba59aa5bd26073d52cb1d63d4c62
BLAKE2b-256 91d696311b8d3d8f9b043f5b6bcec458aed106317a6f36af1dcff923a2f245df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nlmod-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 64.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for nlmod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a36e18ed533f8e2667e68d204d61f3929232c8f5b4415d8136bc8776f7d3ffd
MD5 af2bfae464a6898945f983f970222bb0
BLAKE2b-256 8077a70fdb40e8cc58a71287b21237d47381007cf914c14cf319486786b34b74

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