Skip to content

APEX-MODFLOW model | Sensitivity analysis and calibration using the PEST tool

Notifications You must be signed in to change notification settings

spark-brc/2022_ArcAPEX_apexmf_opt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

APEX-MODFLOW model with PEST

Get data and jupyter notebooks

You essentially have 2 options:

- Easy way

  • Download the data zip file
  • Unzip it to a prefered location.
  • After unzipping the archive file, unzip the "SWAT-MODFLOW" model zip file too.

- Hard way (Dev mode)

  • You will need to install Git if you don’t have it installed already. Downloads are available at the link. On windows, be sure to select the option that installs command-line tools

  • For Git, you will need to set up SSH keys to work with Github. To do so:

    • Go to GitHub.com and set up an account
    • On Windows, open Git Bash (on Mac/Linux, just open a terminal) and set up ssh keys if you haven’t already. To do this, simply type ssh-keygen in git bash/terminal and accept all defaults (important note - when prompted for an optional passphrase, just hit return.)
  • Follow the instructions to set up the SSH keys with your GitHub account.

  • Clone the materials from GitHub.

    • Open a git bash shell from the start menu (or, on a Mac/Linux, open a terminal)
    • Navigate to the folder you made to put the course materials
    • Clone the materials by executing the following in the git bash or terminal window:
    git clone https://github.com/spark-brc/2022_ArcAPEX_apexmf_opt.git

Installation

To execute jupyter notebook, we need the Anaconda environment.

1. Anaconda Python:

2. Set Environment and install libraries:

  • On Windows open the Anaconda Prompt from Start menu (on a Mac/Linux just open a terminal). And paste in this string and execute (this creates a python environment (apexmf_pest) that will work with our codes):

If you have conda already, let's update conda first

conda update conda

then

conda create -n apexmf_pest python=3.7 jupyter notebook
  • Activate the apexmf_pest environment
conda activate apexmf_pest 
  • Finally, install libraries
pip install apexmf

if you have apexmf library

pip install -U apexmf

Then change directory into the example folder or drive:

  • Change directory (example)
cd 2022_ArcAPEX_apexmf_opt-main
  • Launch jupyter notebook
jupyter notebook

A browser window with a Jupyter notebook instance should open. Yay!

About

APEX-MODFLOW model | Sensitivity analysis and calibration using the PEST tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published