calc_cellwise_ensemble: Calculate cell-wise ensembles across 'reqCSs'

Description Usage Arguments

View source: R/calculate_ensemble.R

Description

Calculate cell-wise ensembles across reqCSs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
calc_cellwise_ensemble(
  data,
  subset = NULL,
  funs = c("mean", "min", "max"),
  ...,
  variables = NULL,
  sc_historical = NULL,
  add_historical = FALSE,
  dim_ens = 3L,
  req_scens = NULL,
  req_dtimes = NULL,
  req_downs = NULL,
  verbose = FALSE
)

Arguments

data

An array with four dimensions – as generated by extract_dbOut_to_array.

subset

A logical vector used to subset gridcells from data for calculation of ensemble.

funs

A vector of character strings or of functions. The functions of the form f(x, ...) which will be used to calculate the ensemble values across GCMs.

...

Optional arguments passed to every funs function, e.g., na.rm = TRUE.

variables

A vector of character strings. A subset of names of the second dimension of data or NULL which indicates to use the full set of the second dimension of data.

dim_ens

An integer value. The dimension of data over which the ensembles are calculated. This has to be 3.

req_scens

A vector of character strings. A subset of (climate) scenarios from SFSW2_prj_meta[["sim_scens"]][["reqCSs"]] for which ensembles are calculated across participating models.


DrylandEcology/rSW2analysis documentation built on Nov. 8, 2021, 4:20 p.m.