A1_calcSol {solaR}  R Documentation 
Compute the apparent movement of the Sun from the Earth with the
functions fSolD
and fSolI
.
calcSol(lat, BTd, sample = 'hour', BTi,
EoT = TRUE, keep.night = TRUE,
method = 'michalsky')
lat 
Latitude (degrees) of the point of the Earth where calculations are needed. It is positive for locations above the Equator. 
BTd 
Daily time base, a 
sample 
Increment of the intradaily sequence. It is a character
string, containing one of ‘"sec"’, ‘"min"’, ‘"hour"’.
This can optionally be preceded by a (positive or
negative) integer and a space, or followed by ‘"s"’. It is
used by It is not considered if 
BTi 
Intradaily time base, a 
EoT 
logical, if 
keep.night 
logical, if 
method 

A Solclass
object.
Oscar Perpiñán Lamigueiro.
Cooper, P.I., Solar Energy, 12, 3 (1969). "The Absorption of Solar Radiation in Solar Stills"
Spencer, Search 2 (5), 172, https://www.mailarchive.com/sundial@unikoeln.de/msg01050.html
Michalsky, J., 1988: The Astronomical Almanac's algorithm for approximate solar position (19502050), Solar Energy 40, 227235
Perpiñán, O, Energía Solar Fotovoltaica, 2015. (https://oscarperpinan.github.io/esf/)
Perpiñán, O. (2012), "solaR: Solar Radiation and Photovoltaic Systems with R", Journal of Statistical Software, 50(9), 132, doi: 10.18637/jss.v050.i09
BTd = fBTd(mode = 'serie')
lat = 37.2
sol = calcSol(lat, BTd[100])
print(as.zooD(sol))
library(lattice)
xyplot(as.zooI(sol))
solStrous = calcSol(lat, BTd[100], method = 'strous')
print(as.zooD(solStrous))
solSpencer = calcSol(lat, BTd[100], method = 'spencer')
print(as.zooD(solSpencer))
solCooper = calcSol(lat, BTd[100], method = 'cooper')
print(as.zooD(solCooper))