InstallationΒΆ
Anaconda running python 3.7 is used as the package manager. To get set up with an environment, install Anaconda from the link above, and (from this directory) run
conda env create -f environment.yml
This will create an environment named esowc-drought with all the necessary packages to run the code. To activate this environment, run
conda activate esowc-drought
Docker can also be used to run this code. To do this, first run the docker app (either docker desktop or configure the docker-machine):
# on macOS
brew install docker-machine docker
docker-machine create --driver virtualbox default
docker-machine env default
See this link for help on all machines or this one for MacOS.
Then build the docker image:
docker build -t ml_drought .
Then, use it to run a container, mounting the data folder to the container: