ERAhourlyWindspeed: Estimates hourly wind speeds from ERA-Interim 3-hourly or...

View source: R/ERAhourlyWindspeed.R

ERAhourlyWindspeedR Documentation

Estimates hourly wind speeds from ERA-Interim 3-hourly or ERA-40 6-hourly wind vectors

Description

Estimates hourly wind speeds from ERA-Interim 3-hourly or ERA-40 6-hourly wind vectors

Usage

ERAhourlyWindspeed(
  ERAu10,
  u10Colnum = 1,
  ERAv10,
  v10Colnum = 1,
  method = "linear",
  quiet = TRUE,
  logfile = ""
)

Arguments

ERAu10

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

u10Colnum

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

ERAv10

Required. The CRHMr obs dataframe of ERA v10 wind vector values. The values must not be deaccumulated, as the deaccumERA function is vcalled by this function.

v10Colnum

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

method

Optional. The methods to be used for interpolation of the wind speeds. 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 10m wind speeds (u10) in m/s and directions in degrees. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

See Also

ERAgetNearestTimeseries interpolate

Examples

## Not run: 
hourlyU <- ERAhourlyWindspeed(ERAu10=u10, ERAv10=v10)
## End(Not run)

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