Guide to install RAT's Dev Version
-
First create project directory structure.
-
We will use the
rat3_project
as the project directory for running RAT. We will usemodels
to store the models vic, metsim, vic-routing and RAT.data
,params
andsecrets
directories would be used to store various sorts of data, parameter files and secrets repectively.
Next, we will clone RAT from github into the models
directory.
-
Create the conda environment, and install RAT using conda develop.
-
Now you will be able to
import rat
and its components in the./.env
environment. Any changes you make in the RAT's source code in models/RAT/src/ directory will be imported. While installing rat as a conda package gives access to the cli commandrat
allowing interface to rat. The same behavior can be imitated in a development install by calling passing the arguments to the scriptmodels/RAT/src/rat/cli/rat_cli.py
. Let's use this interface to initialize RAT. RAT requires some secrets to be able to use various functionalities, which have to be stored in thesecrets/secrets.ini
file. Read more about it . -
RAT has not been initialized (hydrological models set up, global data downloaded and the parameter file has been populated). Follow instructions to complete the rest of the parameter file so that RAT can be run. To run RAT using the parameter file
rat_config.yaml