CSLSscenarios is an R package containing code and results generated by the Wisconsin Department of Natural Resources for the lake ecosystem response analysis of the Central Sands Lakes Study (CSLS).
Key datasets contain calculated hydrologic metrics for each simulation of each
38-year scenario (data/MODFLOW_metrics
) and a comparison to
no-irrigated-agriculture metrics (data/MODFLOW_comparison
), with significant
thresholds and impact (T/F) determinations. These datasets are generated by
data-raw/calculate_MODFLOW_metrics.R
and data-raw/compare_MODFLOW_scenarios
.
Rerunning requires the MODFLOW results contained in CSLSdata
and may take a
while - generally 30 min++ on my machine to run for all scenarios and
simulations.
The full suite of hydrologic metrics is calculated for each simualtion via
R/calculate_metrics.R
. The ecological rules underpinning the significant
impact assessment are collated in data/ecological_rules
and interpreted by the
R/compare_scenarios.R
.
Details on data and code can also be found in inst/CSLSscenarios_1.0.0.pdf
.
Several data files in this package are hosted via Git Large File Storage (LFS). You may need to install LFS in order for some files to download properly via git.
To install or explore this R package, you may:
Use devtools to install the package. This will allow you to load the
cleaned Rda data files and explore vignettes.
devtools::install_github("WDNR-Water-Use/CSLSdata", build_vignettes=T)
Fork from github, clone or download ZIP, then open the cslsdata.prj file in
R. This will allow you to also explore the raw data files and cleaning scripts
included in data-raw/
.
You may instead be interested in the csv equivalents of Rda data files,
which are saved under inst/csv/
. These are updated every time the Rda data
files are, and may be more accessible for non-R users or those more
comfortable in other programming languages.
# Updating ecological rules If you need to update the ecological rules used for Pleasant, Long, and Plainfiled Lakes or add ecological rules for new lakes:
data-raw/ecological_rules.csv
. R/
and is incorporated in R/calculate_metrics.R
.data-raw/import_ecological_rules.R
R/ecological_rules.R
to reflect this.data/ecological_rules
is available.# Updating MODFLOW results If you need to rerun to analyze new MODFLOW results (e.g., a new scenario):
MODFLOW
data frame in the CSLSdata
R package (here).data-raw\pfl_dist_ranks.csv
and data-raw\psnt_dist_ranks.csv
data-raw\import_well_rank_dist.R
data/well_rank_dist
is available.data-raw/calculate_MODFLOW_metrics.R
to calculate relevant hydrologic metrics for each scenario.MODFLOW_metrics
. data/MODFLOW_metrics
is available for the next step.inst/csv/MODFLOW_metrics.csv
.data-raw/compare_MODFLOW_metrics.R
to evaluate whether changes in hydrologic metrics are large enough to cause a significant impact to the lake ecosystems.CSLSfluxes
(see repo here).MODFLOW_comparison
which indicates which ecological indicators are impacted for each lake under each scenario.data/MODFLOW_comparison
is available for subsequent analysis.inst/csv/MODFLOW_comparison.csv
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.