getClimMeans: Get climate means from CESM history files

Description Usage Arguments Details Value Author(s)

View source: R/getClimMeans.R

Description

Get climate means from CESM history files for the requested components through recursive calling to NCO command ncra. All variables in the original files are included in the temporal means.

Usage

1
2
getClimMeans(tlimStr, DOUT_S_ROOT, CASE, getMonths = TRUE, allowNA = TRUE,
             comps = NULL, loop = NULL, overwrite = FALSE, compvars = NULL)

Arguments

tlimStr

CHARACTER, [2], close,open interval [tlimyStr) representing the time-averaged footprint for the model climatic averages. The format is AAAA-MM-DD HH:MM:ss

DOUT_S_ROOT

CHARACTER, [m] path to model data storage for IO, as defined in CESM documentation

CASE

CHARACTER, [m], as defined in CESM documentation

getMonths

LOGICAL, whether mean momthly climatic averages have been previously calculated

allowNA

Is allowed that some ensemble member has failed

comps

[>=1] CHARACTER of model component to be analysed, in: c("atm", "ice", "lnd", "ocn", "rof")

loop

[1] CHARACTER: If not NULL, output for each component $com will be stored in subfolder '$DOUT_S_ROOT/$com/post/$loop'

overwrite

[1] LOGICAL, whether to overwrite previous monthly calculations. Seasonal and annual mean over the interval are always recalculated

compvars

named LIST, OPTIONAL, with each named element matching one of those above in code. If not NULL each element is a CHARACTER vector with the names of variables to be kept in the mean output files

Details

If comps is NULL, all components shown above are obtained.

Value

Write netCDF files of climatic averages, out of CESM history files, for the requested range

Author(s)

Javier Garcia-Pintado


garciapintado/rdafCESM documentation built on July 18, 2019, 4:41 p.m.