View source: R/distributeQli.R
distributeQli | R Documentation |
Downscales incoming longwave radiation to shorter time intervals,
based on the air temperatures, using the Stefan-Boltzmann law
Q_{li}=\epsilon \sigma T^{4}
. The atmospheric emissivity (\epsilon)
is calculated from the longwave radiation and the temperature at the original time
intervals. The air temperatures are interpolated to the shorter intervals (if required),
and are then used to calculate the incoming longwave, using the longer-interval emissivities.
Finally, the downscaled longwave radiation is adjusted so that its mean values over the
original time intervals are the same as the original values.
distributeQli(
QliObs,
QliColnum = 1,
tObs,
tColnum = 1,
timeStep = 1,
interpolationMethod = "linear",
maxlength = 0,
quiet = TRUE,
logfile = ""
)
QliObs |
Required. A CRHMr obs data frame containing incoming longwave
radiation in in W/m |
QliColnum |
Optional. The number of the columns (not including the datetime)
containing the incoming longwave values. Default is |
tObs |
Required. A CRHMr obs data frame containing air temperatures.
The values may be in K or |
tColnum |
Optional. The number of the columns (not including the datetime)
containing the air temperature values. Default is |
timeStep |
Optional. The number of hours to be used as the downscaled time step.
Default is |
interpolationMethod |
Optional. The method to be used for interpolating the air temperatures (if required). Currently supported methods are linear and spline. The default is to use linear interpolation. |
maxlength |
Optional. The maximum gap length to be interpolated. If not specified (the default), then the maximum gap length permitted is twice the time interval of the air temperatures. |
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 data frame containing the downscaled incoming
longwave radiation (Qli) in W/m^2
. If unsuccessful, returns an error.
Kevin Shook
emissivity
longwave
interpolate
## Not run:
hourlyLongwave <- distributeQli(LWobs, 1, tobs, 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.