Read in and prepare AORC forcing data for use in NGen water modeling framework. Specifically to test the Modules.
Many options are available when running this forcing module.
The BMI functionality was developed as a standalone module in C. To compile this code the developer used these steps:
module load gnu/10.1.0
gcc -lm ./src/main.c ./src/read_aorc_forcing.c ./src/bmi_aorc.c -o run_bmi
This should generate an executable called run_bmi. To run this executable you must pass the path to corresponding to the corresponding configuration file.
Included in this repository is an environment file (env_cheyenne.sh), and a "make and run" file (make_and_run.sh), which will compile the code and run the atmospheric forcing BMI. If you are on the Cheyenne computer, or if you can modify these files to your machine, you can simply follow these two steps to run this code:
source env_cheyenne.sh
./make_and_run.sh