View source: R/ERAhourlyLongwave.R
ERAhourlyLongwave | R Documentation |
This function is called after using the function getNearestERAtimeseries
. This function deaccumulates the ERA-Interim 12-hour cumulative values,using the function ERAdeaccum
and interpolates the 3-hour values to hourly values, based on the extra-terrestrial hourly radiation. ERA-40 6-hourly instantaneous values are interpolated directly to hourly values.
ERAhourlyLongwave( ERAstrd, strdColnum = 1, ERAt2m, t2mColnum = 1, method = "linear", quiet = TRUE, logfile = "" )
ERAstrd |
Required. The CRHMr obs dataframe of ERA strd values. The values must not be deaccumulated, as the |
strdColnum |
Optional. The column number containing the strd values, not including the datetime. Default is column 1. |
ERAt2m |
Required. The CRHMr obs dataframe of ERA t2m values. The values must not be deaccumulated, as the |
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 |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used |
If successful, returns an obs dataframe containing the interpolated hourly ERA incoming longwave radiation (Qli) in W/m^2, and the hourly 2m air temperatures (t) in C. If unsuccessful, returns the value FALSE
.
Kevin Shook
The value of the Stefan-Boltzmann constant was obtained from http://physics.nist.gov/cgi-bin/cuu/Value?sigma
ERAgetNearestTimeseries
ERAdeaccum
ERAhourlyShortwave
## Not run: hourlyQli <- ERAhourlyLongwave(ERAstrd=strd, ERAt2m=t2m) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.