Decision Support Modelling Notebooks
Provide an introduction to both the concepts and the practicalities of undertaking decision-support groundwater modelling with the PEST/PEST++ and pyEMU suites of software.
https://github.com/gmdsi/gmdsi_notebooks
Category: Sustainable Development
Sub Category: Education
Keywords from Contributors
ensemble-methods ensembles global-sensitivity-analysis non-intrusive optimization-tools parallel-computing hydrology modflow groundwater
Last synced: about 15 hours ago
JSON representation
Repository metadata
python-based predictive groundwater modeling workflow examples
- Host: GitHub
- URL: https://github.com/gmdsi/gmdsi_notebooks
- Owner: gmdsi
- License: gpl-3.0
- Created: 2021-12-15T02:25:51.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-09-10T15:09:46.000Z (3 months ago)
- Last Synced: 2026-11-25T20:23:55.703Z (about 15 hours ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 619 MB
- Stars: 111
- Watchers: 17
- Forks: 59
- Open Issues: 13
- Releases: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
Decision Support Modelling Notebooks
We have produced a series of tutorial notebooks to assist modellers in setting up and using model-partner software in ways that support the decision-support imperatives of data assimilation and uncertainty quantification. These tutorials provide an introduction to both the concepts and the practicalities of undertaking decision-support groundwater modelling with the PEST/PEST++ and pyEMU suites of software. Their aim is to provide examples of both “how to use” the software as well as “how to think” about using the software.
Notebook Contents
We have endeavoured to make these tutorials as accessible to as many people as possible. Workflows demonstrated herein are implemented programmatically in Python, employing functionality to interface with PEST/PEST++ available in pyEMU. However, concepts and the general approaches described are not limited to programmatic workflows. If you are interested in understanding how to implement pyEMU workflows, then you are encouraged to complete the jupyter notebooks yourself. If you just want to get a high-level understanding of decision-support modelling concepts and software, then you can simply read through the notebooks without having to run the code yourself.
GMDSI has also produced a separate set of tutorials which demonstrate non-programmatic approaches to working with PEST/PEST++ available here.
Pre-requisites (nice to have; not required)
- Basic understanding of Python
- Basic understanding of Jupyter Notebooks
- Basic understanding of MODFLOW 6
Familiarity with git would be a bonus, but not fundamental.
Organization of the Tutorial Notebooks
The notebooks in the tutorial folder are organized in three main parts:
- part 0: this is introductory background material that can be referred to for more detail on special topics. This includes the synthetic "freyberg" model used throughout the exercises, the
pyemupython package that is used to interface with PEST++, and some of the mathematical concepts that come up throughout the tutorial notebooks. Note that thepart1_02_pest_setup/freyberg_pest_setup.ipynbnotebook provides valuable context that will help with understanding thepyemuintroduction. - part 1: this part covers the Gauss-Levenberg Marquardt approach to parameter estimation and associated uncertainty analysis. This was the foundation of the PEST software for multiple decades and the theory continues to resonate through newer techniques
- part 2: this part expands largely into ensemble-based parameter estimation and uncertainty analysis methods using PEST++. Advanced topics include management optimization and sequential data assimilation.
To run the Part 0 notebooks
The part 0 notebooks can be run in any order and do not depend on each other. We recommend, in particular, the first 3 topics as background for the rest of the tutorials, but the remaining part 0 notebooks stand alone for more theoretical basis and a reference for topics covered later.
To run the Part 1 notebooks
The part 1 notebooks can also be run in any order and do not depend on each other.
To run the Part 2 notebooks
If you are going to go through the Part2 notebooks, you will need to run them in the following order:
- part2_01_pstfrom_pest_setup/freyberg_pstfrom_pest_setup.ipynb
- part2_02_obs_and_weights/freyberg_obs_and_weights.ipynb
From here you can optionally run each of the following sequences:
Prior Monte Carlo:
- part2_03_prior_monte_carlo/freyberg_prior_monte_carlo.ipynb
GLM and data worth:
- part2_04_glm/freyberg_glm_1.ipynb
- part2_05_fosm_and_dataworth/freyberg_fosm_and_dataworth.ipynb
- part2_04_glm/freyberg_glm_2.ipynb
PEST++IES:
- part2_06_ies/freyberg_ies_1_basics.ipynb
- part2_06_ies/freyberg_ies_2_localization.ipynb
PEST++DA:
- part2_07_da/freyberg_da_prep.ipynb
- part2_07_da/freyberg_da_run.ipynb
PEST++OPT:
- part2_08_opt/freyberg_opt_1.ipynb
- part2_08_opt/freyberg_opt_2.ipynb
PEST++MOU:
- part2_09_mou/freyberg_mou_1.ipynb
- part2_09_mou/freyberg_mou_2.ipynb
IMPORTANT NOTE: When running some of these notebooks, PEST++ undertakes parallel model runs for computational efficiency. These runs are coordinated using internet communication protocols (e.g. TCP/IP). As a result, it is common (but not universal) that the first time a set of parallel runs is launched, a Windows Defender (or similar popup on other operating systems) box appears warning the user. This box can simply be closed by clicking "cancel" and then the model runs should proceed without issue.
Installation Instructions
Download the course repository:
You can do this in one of two ways.
- (1) (easier) Download the repo as a zip file from here: GMDSI_notebooks. Unzip the folder and work from there.
- (2) (recommended; requires familiarity with git). Install git following directions here: Git. Sign-up for a GitHub account, then clone the repo GMDSI_notebooks.
Install Python, dependencies and executables:
There are two ways to do this. Both end up with the same pinned versions of
pyEMU, FloPy and PEST++; pick whichever you are more comfortable with.
Option A - pixi (recommended)
pixi manages the python environment and the
MODFLOW/PEST++ executables, and pins the entire transitive dependency set in
pixi.lock, so everyone gets an identical environment. You do not need conda,
and you do not need to install python yourself.
- Install pixi by following the directions here: pixi installation.
- Open a terminal (on Windows, use PowerShell or the Command Prompt) and
navigate to the course repo folder withcd *your folder path*. pixi install- creates a self-contained environment inside the repo (in a
.pixifolder). It may take a while.pixi run get-exes- downloads MODFLOW 6, MODPATH 7, ZONEBUDGET 6 and the
PEST++ suite into abinfolder in the repo.
Check the executables arrived with pixi run check-exes. Start jupyter with
pixi run jupyter.
Option B - conda / mamba
- If you have already installed Python using Anaconda, you can skip this step.
If not, install miniforge. - If you are using Windows: go to the start menu and open "Anaconda
prompt". On Linux or MacOS, just use the standard terminal. Navigate
to the course repo folder withcd *your folder path*. mamba env create -f environment.yml(orconda env create -f environment.ymlifmambadoesn't work for you). This creates an
environment called "gmdsitut". It may take a while.
Then execute these commands:
conda activate gmdsitutget-modflow --release-id 29.0 --subset mf6,mp7 :pythonget-pestpp --release-id 5.2.27 :python
Then start jupyter with jupyter lab.
Nothing is installed system-wide by either option, and the binaries are not
stored in the repo itself.
A JupyterLab instance should start within the course repo folder. Using the browser, you can now navigate to the "tutorials" folder, open a notebook, and you are in business!
Acknowledgments
These tutorials were originally developed with support from the U.S Geological Survey (USGS) and support from USGS continues. Continued development and support is funded by the Groundwater Modelling Decision Support Initiative (GMDSI). GMDSI is jointly funded by BHP and Rio Tinto.
Reference
To reference this material, please use the following:
Hugman, R., White, J.T., Fienen, M.N., and Hunt, R.J., 2022, Parameter Estimation, Uncertainty Analysis, and Optimization with the PEST++ Family of codes: Tutorial Jupyter Notebooks: U.S. Geological Survey data release, https://doi.org/10.5066/P901F9G0.
Owner metadata
- Name: gmdsi
- Login: gmdsi
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/104877173?v=4
- Repositories: 4
- Last ynced at: 2026-11-23T19:09:31.049Z
- Profile URL: https://github.com/gmdsi
GitHub Events
Total
- Commit comment event: 1
- Create event: 2
- Fork event: 14
- Issue comment event: 11
- Issues event: 10
- Pull request event: 6
- Pull request review comment event: 16
- Pull request review event: 1
- Push event: 13
- Watch event: 27
Last Year
- Create event: 1
- Fork event: 2
- Issue comment event: 2
- Issues event: 1
- Pull request review comment event: 16
- Pull request review event: 1
- Push event: 5
- Watch event: 1
Committers metadata
Last synced: 3 days ago
Total Commits: 348
Total Committers: 12
Avg Commits per committer: 29.0
Development Distribution Score (DDS): 0.713
Commits in past year: 66
Committers in past year: 5
Avg Commits per committer in past year: 13.2
Development Distribution Score (DDS) in past year: 0.424
| Name | Commits | |
|---|---|---|
| jwhite | j****0@g****m | 100 |
| Mike Fienen | m****n@u****v | 98 |
| rhugman | r****n@g****m | 84 |
| jdub | J****e@l****l | 32 |
| briochh | b****s@.****z | 12 |
| jwhite | j****e@j****l | 11 |
| rhugman | 6****a | 4 |
| Katherine Markovich | k****h@i****m | 3 |
| edesousa-intera | e****a@i****m | 1 |
| Mike Taves | m****s@g****m | 1 |
| Brioch Hemmings | b****h@g****m | 1 |
| jwhite | j****e@m****l | 1 |
Committer domains:
- intera.com: 2
- .gns.cri.nz: 1
- usgs.gov: 1
Issue and Pull Request metadata
Last synced: 10 days ago
Total issues: 11
Total pull requests: 32
Average time to close issues: about 1 month
Average time to close pull requests: 12 days
Total issue authors: 8
Total pull request authors: 7
Average comments per issue: 1.09
Average comments per pull request: 0.22
Merged pull request: 27
Bot issues: 0
Bot pull requests: 0
Past year issues: 4
Past year pull requests: 12
Past year average time to close issues: 3 months
Past year average time to close pull requests: 6 days
Past year issue authors: 2
Past year pull request authors: 3
Past year average comments per issue: 1.5
Past year average comments per pull request: 0.08
Past year merged pull request: 10
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- mcekiz (4)
- mgozdor2 (1)
- Daniel-Trung-Nguyen (1)
- jgallegos554 (1)
- Qguill (1)
- Paszka1 (1)
- rhugman (1)
- Hugovdberg (1)
Top Pull Request Authors
- jtwhite79 (13)
- mnfienen (9)
- rhugman (4)
- kmarkovich-intera (3)
- kmarkovich (1)
- mwtoews (1)
- CooperGarth (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
proxy.golang.org: github.com/gmdsi/gmdsi_notebooks
- Homepage:
- Status: removed
- Documentation: https://pkg.go.dev/github.com/gmdsi/gmdsi_notebooks#section-documentation
- Licenses: gpl-3.0
- Latest release: v0.0.0-20260910150945-665666d4dc8a (published 3 months ago)
- Last Synced: 2026-11-24T19:32:10.060790Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.262%
- Average: 4.408%
- Dependent repos count: 4.553%
Dependencies
- actions/cache v3 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- openjournals/openjournals-draft-action master composite
Score: -Infinity