ERAhourlyPrecip: Etimates hourly precipitation from ERA cumulatve 3 hourly...

View source: R/ERAhourlyPrecip.R

ERAhourlyPrecipR Documentation

Etimates hourly precipitation from ERA cumulatve 3 hourly values

Description

This function is called after using the function getNearestERAtimeseries. This function removes negative values, deaccumulates the 12-hour cumulative values to 3-hour values, using the function deaccumERA, and divides the results by 3 to give to hourly values.

Usage

ERAhourlyPrecip(ERAtp, tpColnum = 1, quiet = TRUE, logfile = "")

Arguments

ERAtp

Required. The CRHMr obs dataframe of ERA tp values. The values must not be deaccumulated, as the deaccumERA function is called by this function.

tpColnum

Optional. The column number containing the tp values, 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 interpolated hourly precipitation (p). If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

See Also

ERAgetNearestTimeseries

Examples

## Not run: 
hourlyP <- ERAhourlyPrecip(tp)
## End(Not run)

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