readAndMergeCMIP5: Read in and collate a collection of NetCDF files.

Description Usage Arguments

View source: R/readAndMergeCMIP5.R

Description

This function reads in data in CMIP5-like format and merges the corresponding 'historical' and 'rcp' runs.

Usage

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)

Arguments

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 readNetCDF)

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 readSeasNetCDF)

min.ncol

Minimum number of time steps in historical to be included

varname

variable name (see readNetCDF)

mask

logical, index of grid boxes to retain (see readNetCDF)


jonasbhend/geoutils documentation built on May 19, 2019, 7:27 p.m.