Learn R Programming

solaR (version 0.14)

fSolI: Instantaneous apparent movement of the Sun from the Earth

Description

Compute the angles which describe the intradaily apparent movement of the Sun from the Earth.

Usage

fSolI(SolD, Nm = 1)

Arguments

SolD
data.frame with the same components as the result of fSolD
Nm
Number of samples per hour. The maximum number allowed is Nm=60

Value

  • A data.frame is returned with these components:
  • wnumeric, solar hour angle (radians)
  • amanlogical, TRUE when Sun is above the horizon
  • cosThzSnumeric, cosine of the solar zenith angle
  • AzSnumeric, solar acimuth angle (radians)
  • AlSnumeric, solar elevation angle (radians)
  • Bo0numeric, extra-atmospheric irradiance (W/m2)
  • rd, rgnumeric, relation between irradiance and irradiation of diffuse and global values, respectively, following the correlations proposed by Collares-Pereira and Rabl

encoding

UTF-8

References

  • Collares-Pereira, M. y Rabl, A., The average distribution of solar radiation: correlations between diffuse and hemispherical and between daily and hourly insolation values. Solar Energy, 22:155–164, 1979.
Perpiñán, O, Energía Solar Fotovoltaica, 2010. (http://procomun.wordpress.com/documentos/libroesf/)

See Also

fSolD

Examples

Run this code
###Angles for one day 

#North hemisphere
Nm=1
lat=37.2
SolD<-fSolD(lat,dn=100)
(SolI<-fSolI(SolD,Nm=Nm))

#South hemisphere
lat=-37.2;
SolDs<-fSolD(lat,dn=283)
(SolIs<-fSolI(SolDs,Nm=1))

###Angles for the 12 average days
lat=37.2;
SolD<-fSolD(lat,BTd=fBTd(Modo='DiasProm'))
SolI<-fSolI(SolD,Nm=6)


library(lattice)
library(latticedl)

###Solar elevation angle vs. azimuth.
#This kind of graphics is useful for shadows calculations 
NombreMes=format(ISOdate(2000, 1:12, 1), "%b")
p<-xyplot(AlS*180/pi~AzS*180/pi,
        groups=factor(NombreMes[Mes]),data=SolI,
        col='black', type='l',
        xlab=expression(psi[s]),ylab=expression(gamma[s]))
direct.label(p,method='top.points')

Run the code above in your browser using DataLab