Description Usage Arguments Value Author(s) References Examples
View source: R/PotentialRadiation.R
Attenuation of the solar beam in a curved, refractive atmosphere modelled with a simple power law with an exponent to the cosine of the solar zenit angle The function calles other functions to calculate the solar zenith angle, the extra terrestrial radiation copied from the R packages REddyProc::fCalcPotRadiation and solartime. Since their arguments where changing I copied part of these packages.
1 2 | calc_PotRadiation_CosineResponsePower(doy, hour, latDeg, longDeg, timeZone,
isCorrectSolartime = TRUE, cosineResponsePower = 1.2)
|
doy |
value or vector of day of year |
hour |
value or vector of hour of day also with decimal fraction |
latDeg |
latitude in degrees |
timeZone |
numeric, if local time is used then 0 otherwise the time must be adapted |
cosineResponsePower |
numeric defaults to 1.2, may be lower at high latitude sites, see Long and Ackerman 2000 |
latDeg |
longitude in degrees |
vector of potential solar radiation at the surface
Maik Renner, mrenner [at] bgc-jena.mpg.de
Long and Ackerman 2000 JGR Renner et al., 2019 ESS
1 2 3 4 5 | data(LIN2003)
# calculate potential surface solar radiation
LIN2003[ , IncomingShortwavePotential := calc_PotRadiation_CosineResponsePower(doy = yday(Date),hour = Time/3600 + 0.25, latDeg = 52.21, longDeg = 14.122, timeZone = 0) ]
LIN2003
plot(IncomingShortwave ~ IncomingShortwavePotential, data = LIN2003[month(Date) == 6, ], type = "p")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.