Create scenarios
create_scenarios.RdThis function creates a data frame with all the combinations of the different parameters for the scenarios. The parameters are defined in the arguments of the function, and can be modified as needed. The function also creates an id for each scenario, which is a combination of the category and the row number.
Usage
create_scenarios(
crop = list(crop = c("maize")),
climate = list(GCM_RCM = drias_tracc_scenarios$GCM_RCM, period = c("ref", "2030",
"2050", "2100"), year_type = c("median", "dry", "wet")),
soil = list(soil = c("test"), soil_depth = c(0.3, 0.6, 0.9, 1.2)),
irrigation = list(rainfed = TRUE),
drias_tracc_scenarios = get_tracc_drias_scenario(cfg = cfg),
cfg = loadConfig()
)Arguments
- crop
list A list of crop names.
- climate
list A list of climate scenarios, including GCM_RCM, period, and year type.
- soil
list A list of soil types and soil depths.
- irrigation
list A list of irrigation parameters, including rotation nday, trigger AWC ratio, dose, and rainfed option.
- drias_tracc_scenarios
list A list of DRIAS TRACC scenarios.
- cfg
a config object. Configuration to use. See loadConfig for details