ERAhourlyAirtemp: Estimates hourly air temperatures from ERA-Interim 3 -hourly...

View source: R/ERAhourlyAirtemp.R

ERAhourlyAirtempR Documentation

Estimates hourly air temperatures from ERA-Interim 3 -hourly or ERA-40 6-hourly values

Description

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

Usage

ERAhourlyAirtemp(
  ERAt2m,
  t2mColnum = 1,
  method = "linear",
  quiet = TRUE,
  logfile = ""
)

Arguments

ERAt2m

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

t2mColnum

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

method

Optional. The methods to be used for interpolation of the air 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 air temperatures. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

See Also

ERAgetNearestTimeseries interpolate

Examples

## Not run: 
hourlyTemps <- ERAhourlyAirtemp(t2m)
## End(Not run)

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