Skip to main content

Rapid and robust construction of MODFLOW groundwater flow models

Project description

Modflow-setup

Modflow-setup is a Python package for automating the setup of MODFLOW groundwater models from grid-independent source data including shapefiles, rasters, and other MODFLOW models that are geo-located. Input data and model construction options are summarized in a single configuration file. Source data are read from their native formats and mapped to a regular finite difference grid specified in the configuration file. An external array-based Flopy model instance with the desired packages is created from the sampled source data and configuration settings. MODFLOW input can then be written from the flopy model instance.

Version 0.7

Tests codecov PyPI version Conda Version Binder Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Getting Started

For more details, see the modflow-setup documentation

Using a yaml-aware text editor, create a configuration file similar to one of the examples in the Configuration File Gallery.

The yaml file summarizes source data and parameter settings for setting up the various MODFLOW packages. To set up the model:

from mfsetup import MFnwtModel, MF6model

m = MF6model.setup_from_yaml(<path to configuration file>)

where m is a flopy MODFLOW-6 model instance that is returned. The MODFLOW input files can be written from the model instance:

m.simulation.write_simulation()

MODFLOW-NWT version:

m = MFnwtModel.setup_from_yaml(<path to configuration file>)
m.write_input()

Installation

See the Installation Instructions

How to cite

Citation for Modflow-setup

Leaf AT and Fienen MN (2022) Modflow-setup: Robust automation of groundwater model construction. Front. Earth Sci. 10:903965. https://doi.org/10.3389/feart.2022.903965

Software/Code Citation for Modflow-setup

Leaf, A.T. and Fienen, M.N. (2022). Modflow-setup version 0.1, U.S. Geological Survey Software Release, 30 Sep. 2022. https://doi.org/10.5066/P9O3QWQ1

Applications of Modflow-setup

Fienen, M.N., Corson-Dosch, N.T., White, J.T., Leaf, A.T. and Hunt, R.J. (2022), Risk-Based Wellhead Protection Decision Support: A Repeatable Workflow Approach. Groundwater, 60: 71-86. https://doi.org/10.1111/gwat.13129

Fienen, M.N., Haserodt, M.J., Leaf, A.T., and Westenbroek, S.M., 2022, Simulation of regional groundwater flow and groundwater/lake interactions in the Central Sands, Wisconsin: U.S. Geological Survey Scientific Investigations Report 2022–5046, 111 p., https://doi.org/10.3133/sir20225046.

Leaf, A.T., Duncan, L.L., Haugh, C.J., Hunt, R.J., and Rigby, J.R., 2023, Simulating groundwater flow in the Mississippi Alluvial Plain with a focus on the Mississippi Delta: U.S. Geological Survey Scientific Investigations Report 2023–5100, 143 p., https://doi.org/10.3133/sir20235100.

Workflow examples

Fienen, M.N, and Corson-Dosch, N.T., 2021, Groundwater Model Archive and Workflow for Neversink/Rondout Basin, New York, Source Water Delineation: U.S. Geological Survey data release, https://doi.org/10.5066/P9HWSOHP.

Leaf, A.T., Duncan, L.L., and Haugh, C.J., 2023, MODFLOW 6 models for simulating groundwater flow in the Mississippi Embayment with a focus on the Mississippi Delta: U.S. Geological Survey data release, https://doi.org/10.5066/P971LPOB.

MODFLOW Resources

Disclaimer

This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software. It is the responsibility of the user to check the accuracy of the results.

Any use of trade, firm, or product names is for descriptive purposes only and does not imply endorsement by the U.S. Government.

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

modflow_setup-0.8.0.tar.gz (337.0 kB view details)

Uploaded Source

Built Distribution

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

modflow_setup-0.8.0-py3-none-any.whl (295.6 kB view details)

Uploaded Python 3

File details

Details for the file modflow_setup-0.8.0.tar.gz.

File metadata

  • Download URL: modflow_setup-0.8.0.tar.gz
  • Upload date:
  • Size: 337.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for modflow_setup-0.8.0.tar.gz
Algorithm Hash digest
SHA256 d712b6377a41b85c1f3e3536bb384957caa81157dc1328aac0524be6b8ac09a3
MD5 a4a38b0c85bfeb2ee6a0df210facc146
BLAKE2b-256 77829360014be8c406d6b0594deb60ac4be0529e9f82c1e2c2f33804f8ac58d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for modflow_setup-0.8.0.tar.gz:

Publisher: release.yml on DOI-USGS/modflow-setup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file modflow_setup-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: modflow_setup-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 295.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for modflow_setup-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1af5af95df0ab8fc05d91314ca409276278c3f530219305c6f755acefdafd509
MD5 7eb9eb80ae8da9b335a595dce0770f5c
BLAKE2b-256 8aa117bab35c07201ce35ff6b89d198e3ca6c5cd8fbf3bb15fb0ce633d32fa2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for modflow_setup-0.8.0-py3-none-any.whl:

Publisher: release.yml on DOI-USGS/modflow-setup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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