View source: R/distributeQsi.R
distributeQsi | R Documentation |
Downscales incoming shortwave radiation to shorter time intervals, based on the extra-terrestrial radiation. The mean atmospheric transmittance is computed from the ratio of the incoming shortwave to the extra-terrestrial radiation over the original time intervals. The extra-terrestrial radiation over the shorter time intervals is then multiplied by the mean transmittance values to calculate the shorter interval incoming shortwave radiation.
distributeQsi(
QsiObs,
QsiColnum = 1,
latitude = "",
sunTimeOffset = 2,
timeStep = 1,
solarMethod = "simpleMaxSolar",
details = FALSE,
quiet = TRUE,
logfile = ""
)
QsiObs |
Required. A CRHMr obs data frame containing incoming shortwave radiation
in in W/m |
QsiColnum |
Optional. The number of the columns (not including the datetime) containing
the incoming shortwave values. Default is |
latitude |
Required. The latitude for which values are to be calculated. |
sunTimeOffset |
Optional. The offset (in hours) is added to the solar time to convert it to local time. The default value 2 shifts the daily peak to occur at 2pm. |
timeStep |
Optional. The number of hours to be used as the downscaled time step. Default
is |
solarMethod |
The method to be used for calculating the extra-terrestrial radiation. The
default method is simpleMaxSolar. Note that this method is only valid for latitudes
between 49 and 55 |
details |
Optional. If |
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 shortwave
radiation (Qsi) in W/m^2
and, optionally, the transmittance and extra-terrestrial
solar radiation (So_h_W
). If unsuccessful, returns an error.
Kevin Shook
simpleMaxSolar
distributeQli
## Not run:
hourlyShortwave <- distributeQsi(QsiObs=SWobs, QsiColnum=1, latitude=51.1, timeStep=1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.