A simulation model incorporating CVP and SWP Delta exports, reservoir releases, and snow-pack to streamflow forecasts. This branch simulates both historical and projected cmip5 scenarios.
NumPy, pandas, Matplotlib, Scipy, and scikit-learn.
- In main.py, set projection to False.
- Choose whether to calculate R2s and plot resuts (set variables to True or False. If running any data processing scripts, set process_hist_data to True. If downloading up-to-date historical data, set cdec to True. Set hist_indices to True if re-processing new data. Set hist_forcast to True if re-running forecasts.
- Run main.py and results will be in historical_runs_data folder.
- Choose cmip5 scenario to run. Its input data file can be found in the git repository orca_cmip5_inputs. Copy desired input file from this repository to orca's input_climate_files folder.
- In main.py, set variable sc to desired scenario to read. Set options for plot, process_climate_data, climate_indices, and climate_forecasts. Historical data can also be processed in same execution of script if updating forecast and gains regression coefficients is desired.
- After executing main.py for the projection will be in the individual_projection_runs folder.
- Copy input files for all desired cmip5 scenarios from the orca_cmip5_inputs repository to ORCA's scenario_runs folder.
- Write names of all desired cmip5 scenarios to scenario_names.txt file in data folder.
- Set climate_indices , climate_forecasts, and run_projection options in run_all_climate_projections.py. Set consolidate_outputs to format results for each scenario in the same csv files.
- After executing run_all_climate_projections.py, results will be in the scenario_runs and climate_results folders.
Copyright (C) 2020 Cohen, J.S., Zeff, H.B., & Herman, J.D. Released under the MIT license.