Create an ensemble based on list of models
Usage
htr_create_ensemble(
indir,
outdir,
model_list,
variable = "tos",
freq = "Omon",
scenario = "historical",
season = "",
domain = "",
mean = TRUE
)
Arguments
- indir
Directory where input files are located
- outdir
Directory where output files will be saved
- model_list
Character string of models to use for the ensemble
- variable
The variable to create the ensemble for
- freq
The temporal frequency to be used in the analysis
- scenario
The CMIP scenario to be used in the analysis.
- season
If using seasonal frequency, input the season name to detect the files
- domain
If using depth-resolved models, input the domain name to detect the files
- mean
Use the mean (TRUE; default) or the median (FALSE) when creating the ensemble.
Examples
if (FALSE) { # \dontrun{
htr_create_ensemble(
indir = file.path(base_dir, "data", "proc", "regridded", "yearly", "tos"),
outdir = file.path(base_dir, "data", "proc", "ensemble", "mean", "tos"),
model_list = c("ACCESS-ESM1-5", "CanESM5"),
variable = "tos",
freq = "Omon",
scenario = "ssp126",
mean = TRUE
)
} # }