ERAdeaccum: Deaccumulates ERA cumulative time series

View source: R/ERAdeaccum.R

ERAdeaccumR Documentation

Deaccumulates ERA cumulative time series

Description

This function is used to deaccumulate variables stored as 12-hour cumulative values by ERA to 3-hour values. It is called by other functions, but may also be useful as a stand-alone functions. Note that this function only works for a single location, i.e. NOT areal values.

Usage

ERAdeaccum(ERAobs, colnum = 1, quiet = TRUE, logfile = "")

Arguments

ERAobs

Required. A CRHMr obs dataframe of ERA data, created by ERAgetnearestTimeSeries.

colnum

Optional. The column number containing the values to be deaccumulated, not including the datetime. Default is column 1.

quiet

Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave quiet=TRUE (i.e. the default). If you are working interactively, you will probably want to set quiet=FALSE.

logfile

Optional. Name of the file to be used for logging the action. Normally not used

Value

If successful, returns an obs dataframe containing the deaccumulated value. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

Examples

## Not run: 
deaccum <- ERAdeaccum(ERAobs)
## End(Not run)


CentreForHydrology/Reanalysis documentation built on Nov. 23, 2022, 2:57 a.m.