-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Download and follow the installation procedure for Miniconda. Most recent installation packages can be found at https://conda.io/miniconda.html
To setup a local environment and execute the scripts requires basic familiarity with Command Prompt on Windows or Terminal on Mac/Linux.
Once Miniconda is successfully installed you should find the program 'Anaconda Prompt' in the Program Files folder on Windows and the 'conda' command line tool in the Terminal program on OS X/Linux environments.
Open 'Anaconda Prompt'/'Terminal' and install the git command:
conda install git
Git is required to download the source code from github.com.
Upon successful install of git, download the code onto the local machine. For that, first create a folder that will act as the root directory for the source code. Below sample commands all use a folder called 'source_code' in the command line:
- Windows
chdir C:\Users\username\source_code
git clone git@github.com:UofU-Cryosphere/servir-snow.git
- Mac
cd /Users/username/source_code
git clone git@github.com:UofU-Cryosphere/servir-snow.git
The source code requires a set of Python libraries to be installed and all of these can be obtained by using the 'conda' command and the 'environments.txt' file for your corresponding operating system.
In the Anaconda Prompt/Terminal:
- Windows
chdir C:\Users\username\source_code\servir-snow
conda env create -f conda_environment_win64.txt -p C:\Users\username\source_code\conda_servir_snow
- Mac
cd /Users/username/source_code
conda env create -f conda_environment.txt -p /Users/username/source_code
This completes the setup process and you can start using the setup environment.
To use the setup environment and run the scripts execute the following on the command line:
- Windows
activate servir_snow
chdir C:\Users\username\source_code\servir-snow
- Mac
source activate servir_snow
cd /Users/username/source_code/servir-snow
These commands have to be executed every time the used command prompt (Anaconda Prompt/Terminal) is first opened up. A successful activation is indicated by having the environment name at the beginning of the command line prompt:
- Windows
(snow_servir) C:\Users\username\source_code\server-snow:
- Mac
(snow_servir) /Users/username/source_code/servir-snow: