This code reproduces figures from the Beaverdam Reservoir forecasting data assimilation experiments using the FLARE (Forecasting Lake And Reservoir Ecosystems) system in the manuscript by Wander et al. titled "Data assimilation experiments inform monitoring needs for near-term ecological forecasts in a eutrophic reservoir." If you have any questions, contact Heather Wander at [email protected]
- Download or clone github repository to your local computer
- Run install.Rin theworkflows/DA_experimentsfolder to download GLM and FLARE packages and their dependencies
- Run download_scores.Rin theworkflows/DA_experimentsfolder to download driver data and observation files from EDI or GitHub
- Run BVR_FLARE_ms_figs.Rscript in theworkflows/DA_experimentsfolder to reproduce manuscript and supplemental figures
- Run BVR_FLARE_UC_figs.Rscript in theworkflows/DA_experimentsfolder to reproduce Fig. 9 (proportion of IC uncertainty) and SI figures for forecasts run without initial conditions uncertainty
- 
Run install.Rin theworkflows/DA_experimentsfolder to download GLM and FLARE packages and their dependencies
- 
Run combined_workflows.Rin theworkflows/DA_experimentsfolder to iteratively generate forecasts for every data assimilation frequency and day in the forecast periodNote Running forecasts for 365 days and all four data assimilation frequencies will take > 10 days. 
- 
Download and install Docker to your computer (https://www.docker.com) 
- 
At the command line, run docker run --rm -ti -e PASSWORD=yourpassword -p 8787:8787 rqthomas/wander_et_al:latest
- 
Open a webbrowser and enter http://localhost:8787. You will see an Rstudio login screen. The user name isrstudioand the password isyourpassword
- 
In the Rstudion session: File -> Open project -> select BVRE-forecast-code/BVRE-forecast-code.Rproj 
- 
Follow the instructions above for reproducing the figures or the forecasts (note: the R packages are already installed in the Docker container so install.Rdoes not need to be run)