Learn R Programming

solaR (version 0.14)

calcG0: Irradiation and irradiance on the horizontal plane

Description

This function obtains the global, diffuse and direct irradiance on the horizontal plane from the values of daily global irradiation on the horizontal plane. It makes use of the functions fSolD, fSolI, fCompD, fCompI, LeeMAPA and fBTd. Besides, if information about maximum and minimum temperatures values are available it obtains a series of temperature values with fTemp.

Usage

calcG0(lat, G0dm, Ta = 25, modoRad = "prom", 
    MAPA, BaseDatos, FormatoFecha = "%d/%m/%Y", 
    Nm = 1)

Arguments

lat
numeric, latitude (degrees) of the point of the Earth where calculations are needed. It is positive for locations above the Equator.
G0dm
numeric, a vector of length 12 with monthly mean values of daily global irradiation (Wh/m²) in the horizontal plane. It is needed only when modoRad='prom'
Ta
numeric, ambient temperature ($^{\circ}{\rm C}$). It may be a constant value or a set of 12 values (one for each month). It is not used when modoRad='mapa'
modoRad
character, describes the kind of source data of the global irradiation. It can be modoRad='prom' for monthly mean calculations. With this option, a set of values for G0dm must be provided. When modoRad='mapa' the sou
MAPA
list, with the components Provincia, Estado, FechaInicio, FechaFinal as required by LeeMAPA. It is needed when modoRad='mapa'
BaseDatos
data.frame with, at least, a numeric component named G with information about daily global irradiation (Wh/m²) on the horizontal surface, and another character component named Fecha with information about the dates w
FormatoFecha
character, date format of the component Fecha of BaseDatos. Its default value is %d/%m/%Y
Nm
Number of samples per hour. The maximum number allowed is Nm=60

Value

  • list containing
  • Idata.frame, result of fCompI, which is a set of variables describing the components of irradiance on the horizontal plane.
  • Ddata.frame, result of fCompD, which is a set of variables describing the components of daily irradiation on the horizontal plane.
  • paramlist which contains the main parameters of the calculation.

References

Perpiñán, O, Energía Solar Fotovoltaica, 2010. (http://procomun.wordpress.com/documentos/libroesf/)