ERA5deaccum: Deaccumulates ERA5 cumulative precipitation time series

View source: R/ERA5deaccum.R

ERA5deaccumR Documentation

Deaccumulates ERA5 cumulative precipitation time series

Description

This function is used to deaccumulate variables stored as 24-hour cumulative values by ERA to 1-hour values. Note that this function only works for a single location, i.e. NOT areal values.

Usage

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

Arguments

ERAobs

Required. A CRHMr obs data frame of ERA 5 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 data frame containing the deaccumulated value. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

Examples

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


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