You essentially have 2 options:
- Download the data zip file
- Unzip it to a prefered location.
- After unzipping the archive file, unzip the "SWAT-MODFLOW" model zip file too.
-
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
To execute jupyter notebook, we need the Anaconda environment.
- If you don’t already have Anaconda Python installed, please install from this link:https://conda.io/miniconda.html (miniconda: anaconda light version) or https://repo.anaconda.com/archive/Anaconda3-2021.11-Windows-x86_64.exe (anaconda)
- Select the Python 3.7 version (if available).
- Important - on Windows, choose option to install “for this user only” (Note, if you already have Anaconda installed, just skip to the next step which you will still need to run)
- 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!