createDataclim: Create a 'dataclim' object

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Create a dataclim object from daily temperature and precipitation (and other meteorological) data

Usage

1
2
createDataclim(date = NULL, tmin = NULL, tmax = NULL, prec = NULL,
  basePeriod=1961:1990, convertFlaggedToNA=TRUE, ...)

Arguments

date

A vector of class Date.

tmin

A numeric vector of the same length as date.

tmax

A numeric vector of the same length as date.

prec

A numeric vector of the same length as date.

basePeriod

A numeric vector of years. The annual cycle is computed with respect to to these years during the consistency checks. Defaults to the standard climatological period of 1961:1990.

convertFlaggedToNA

Logical, whether detected inconsistent data shall be set to NA. Defaults to TRUE

...

Further vectors of the same length as date. This allows to include observations other than temperature and precipitation.

Details

This generates a dataclim object. It calls the dataclim constructor which performs consistency checks (according to the Algorithm Theoretical Basis Document (ATBD) of the European Climate Assessment & Dataset project (ECA&D), currently only for temperature and precipitation) and aggregates the data to monthly and annual timescales. NAs in the variables are allowed.

Value

An object of class dataclim.

Author(s)

Boris Orlowsky <boris@climate-babel.org>

References

The ATBD: http://www.ecad.eu/documents/atbd.pdf

See Also

See also dataclim.

Examples

1
2
3
4
5
 
data(potsdam)
date <- as.Date(potsdam$date)
myDataclim <- createDataclim(date=date, tmin=potsdam$tmin, tmax=potsdam$tmax,
                          prec=potsdam$prec, basePeriod=1981:2010)

iki.dataclim documentation built on May 2, 2019, 2:38 a.m.