View source: R/readAndMergeCMIP5.R
This function reads in data in CMIP5-like format and merges the corresponding 'historical' and 'rcp' runs.
1 2 3 4 5 6 | readAndMergeCMIP5(files, complete_ens = FALSE, complete_ts = TRUE,
mulc = 1, addc = 0, valid_range = c(-1e+10, 1e+10), validate = TRUE,
experiments = c("historical", "rcp26", "rcp45", "rcp60", "rcp85"),
verbose = TRUE, startyear = 1900, endyear = 2099, seas = c("djf",
"mam", "jja", "son"), min.ncol = length(seas), varname = NULL,
mask = NULL)
|
files |
vector of pathnames to NetCDF files (old directory structure) |
complete_ens |
logical, should models and runs be the same across RCPs? |
complete_ts |
logical, should time series be complete? |
mulc |
multiplicative factor (see |
addc |
additive factor |
valid_range |
range for quality control |
validate |
logical, should quality control be perfomed (on a per model basis)? |
experiments |
what experiment should be retained? |
verbose |
logical, should progres notes be printed to screen? |
startyear,endyear |
what years should time series be clipped to? |
seas |
what seasons should be read in (see |
min.ncol |
Minimum number of time steps in historical to be included |
varname |
variable name (see |
mask |
logical, index of grid boxes to retain (see |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.