sunr: Earth radius vector

Description Usage Arguments Value Author(s) References Examples

View source: R/sunr.R

Description

Calculates the Earth radius vector.

Usage

1
sunr(jd)

Arguments

jd

Julian Day

Value

Earth Radius Vector in Astronomical Units (AU). This is used to modify the solar constant as a function of the earth-sun distance.

Author(s)

Javier G. Corripio

References

https://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html

Meeus, J. 1999. Astronomical Algorithms. Willmann-Bell, Richmond, Virginia, USA.

Reda, I. and Andreas, A. 2003. Solar Position Algorithm for Solar Radiation Applications. 55 pp.; NREL Report No. TP-560-34302, Revised January 2008. https://www.nrel.gov/docs/fy08osti/34302.pdf

Examples

1
2
3
4
# plot the variation of the earth radius vector over the next year
days_nexty = seq(Sys.time(),Sys.time()+86400*365,by='day')
plot(days_nexty,sunr(JD(days_nexty)),xlab='Date',ylab='Earth Radius Vector [AU]')
abline(h=1,col=8)

insol documentation built on Jan. 16, 2019, 5:04 p.m.