This package provides tools for creating valid scenario input data to run with the fallRunDSM
, winterRunDSM
, or springRunDSM
life cycle models.
This package can be installed using the following commands:
# install.packages("remotes")
remotes::install_github("Reorienting-to-Recovery/DSMscenario")
Scenarios can be defined within a dataframe and built using the load_scenario
function. Each row within the dataframe represents one unique scenario action for a given watershed, for a period of years and number of units of effort.
Actions are defined below:
First define flow-to-habitat relationship:
Layer on additional actions
Some actions allow the user to specify the watershed and/or year for which you want the action to be implemented. Please refer to the more in-depth action documentation to see where this is possible:
For more information run ?load_scenario
in the console.
The following example builds the kitchen sink scenario:
Habitat
Harvest
Hatchery
Hydrology
scenario_df <- data.frame(
watershed = c(rep("All", 6), "Sacramento River"),
action = c(2, 5, 6, 14, 16, 19, 23),
years = rep("All", 7))
scenario <- load_scenario(scenario = scenario_df,
species = R2Rscenario::species$FALL_RUN,
params = fallRunDSM::r_to_r_baseline_params)
See reference, datasets, for a full list of helper datasets.
For a list of proper watershed labels see: R2Rscenario::watershed_labels
The minimum decay rates for each watershed are stored in R2Rscenario::spawn_decay_rate
and R2Rscenario::rear_decay_rate
Regulated watersheds are stored in DSMscenario::regulated_watersheds
and SIT watershed groupings are stored in R2Rscenario::watershed_groups
The R2Rscenario
package uses data from several packages within the Reorienting To Recovery Organization. These relationships are visualized in the dependency graph below.