Skip to contents

Create an ensemble based on list of models

Usage

htr_create_ensemble(
  indir,
  outdir,
  model_list,
  variable = "tos",
  freq = "Omon",
  scenario = "historical",
  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.

mean

Use the mean (TRUE; default) or the median (FALSE) when creating the ensemble.

Examples

if (FALSE) {
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
)
}