The following attempts to document the process used to process any CRSS runs.
Warning: the code may aggregate data from 35-70 or more individual CRSS runs (depending on the month of the CRSS run). This can be memory intensive. However, the latest processing was performed on a standard laptop with 8 GB of memory.
Steps 1 and 2 are handled in this repository.
For example, a typical setup could include the following:
CRSS_DIR
environment variable would be set to this path, and the results will be saved to C:/CRSS/CRSS.2017/results/someProvidedNameIf you find any issues when running the code, please submit issues on Github.
The user provided yaml file determines which figures and tables are created for which scenarios. The yaml specification page provides the details about how this file must be specified.
Some figures and tables can be created for individual scenarios. See "scenario plot specifications". These include: "standard individual figures" - the chance of shortage and surplus on one plot; a barchart of the different shortage tiers for 1 scenario "standard individual tables" - tables of the chances of being in any IG/DCP tier for each year. "shortage conditions" - A scatter plot identifying which traces end the specified year in shortage, the October-December Powell release and Powell WY release from the previous year, and the LB intervening gains (or MWD ICS delivery/creation) for each of theses traces. "Mead pool elevation scatter plot" - a scatter plot of Mead December elevation vs. trace number for traces near 1,075'.
Additional plots are useful for comparing multiple scenarios. See "plot_group". These figures include: "standard comparisons" - plots comparing the chances of falling below various elevations at Mead and Powell and the End-of-December 10/50/90th percentiles. "annual computed state depletions (csd)" - box plots of the annual CSD for each state "heatmaps" - a heatmap showing the chance that Powell and Mead are in various elevation bands. Best kept to two scenarios. "cloud plots" - shaded area plots that shade the 10th-90th percentile December elevations for Powell and Mead, and show the Median. The plots also include historical elevation.
main.R
Edit main.R so the path in ui <- parse_yaml_input("some/path/file.yaml")
points to the yaml file. The path can be an absolute path or a path relative to the Process-CRSS-Res folder.
Use the crssrelease package to finish up the process of creating the necessary files to post for the Stakeholder Modeling Team. The README file for that package provides examples for using it to:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.