ERAhourlyVP: Calculates the hourly vapour pressure from the 3-hour...

View source: R/ERAhourlyVP.R

ERAhourlyVPR Documentation

Calculates the hourly vapour pressure from the 3-hour ERA-Interim or 6 hour ERA-40 dew point temperature

Description

Interpolates ERA instantaneous dew point temperatures to hourly values. The ERA dew point temperatures are first converted from K to C, if required.

Usage

ERAhourlyVP(
  ERAd2m,
  d2mColnum = 1,
  method = "linear",
  quiet = TRUE,
  logfile = ""
)

Arguments

ERAd2m

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

d2mColnum

Optional. The column number containing the d2m values, not including the datetime. Default is column 1.

method

Optional. The methods to be used for interpolation of the dew point temperature. Currently supported methods are linear and spline. The default is to use linear interpolation.

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 2m vapour pressures (ea) in kPA. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

See Also

ERAgetNearestTimeseries interpolate ERAhourlyAirtemp

Examples

## Not run: 
hourlyVP <- ERAhourlyVP(d2m)
## End(Not run)

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