ReadCMIP5Ensemble: Read the multimodel-ensemble of CMIP5 climate model data.

Description Usage Arguments Value Author(s) Examples

View source: R/ReadCMIP5Ensemble.R

Description

Reads the multimodel-ensemble of CMIP5 climate model data. It expects a filelist (txt file with two columns, first column model name e.g. CCSM4, second column number of ensemble members) and expects that the filenames are formatted in a simplified CMIP5 formatting except PREFIX_modelname_MIDDLE_ensmemberNumber_SUFFIX. The perl scripts for processing the CMIP5 simulations to this format are oder geonob1/ecus/pool/cmip5/scripts.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ReadCMIP5Ensemble(
  path = "",
  bFullEnsemble = TRUE,
  METAFILE = paste(path, "filelist.txt", sep = ""),
  DATADIR = path,
  PREFIX = "tas_Amon_",
  MIDDLE = "_historical_",
  SUFFIX = ".nc",
  varname = "tas"
)

Arguments

path

, [optional] path of the METAFILE named filelist.txt

bFullEnsemble

FALSE: read only first member; TRUE:Read all members

METAFILE

filename (and path) of the metafile (file list)

DATADIR

Path of the netcdf files (default = path)

PREFIX

prefix of the files e.g. "tas_Amon_"

MIDDLE

middle of the filename, e.g. "_historical_" or "_past1000_"

SUFFIX

"suffix"

varname

variable name to be read

Value

list(cdat, meta) cdat= List of pField objects meta: List of vectors: name = unique name, modelName = modelName... ensMember = Ensemble member, here 1..100

Author(s)

Thomas Laepple

Examples

1
2
3
## Not run: past1000 <- ReadCMIP5Ensemble(path="/model/CMIP5/past1000/tas.djfmam/", 
MIDDLE = "_past1000_",SUFFIX=".ncdjfmam")
## End(Not run)

EarthSystemDiagnostics/ecustools documentation built on Jan. 15, 2022, 5:22 p.m.