Learn R Programming

solaR (version 0.14)

fTemp: Intradaily evolution of ambient temperature

Description

From the maximum and minimum daily values of ambient temperature, its evolution its calculated through a combination of cosine functions (ESRA method)

Usage

fTemp(SolI, BD)

Arguments

SolI
data.frame, including at least two components named ws and w. It may be the result of fSolI
BD
data.frame, including at least three components name IDd, TempMax and TempMin. It may be the result of LeeMAPA

Value

  • data.frame constructed with merge(BD,SolI,sort=FALSE) and a component named Ta with the profile of the ambient temperature.

encoding

UTF-8

Details

The ESRA method estimates the dependence of the temperature on the time of the day (given as the local solar time) from only two inputs: minimum and maximum daily temperatures. It assumes that the temperature daily profile can be described using three piecewise cosine functions, dividing the day into three periods: from midnight to sunrise, from sunrise to the time of peak temperature (3 hours after midday), and to midnight.

References

  • Huld, T. , Suri, M., Dunlop, E. D., and Micale F., Estimating average daytime and daily temperature profiles within Europe, Environmental Modelling & Software 21 (2006) 1650-1661
Perpiñán, O, Energía Solar Fotovoltaica, 2010. (http://procomun.wordpress.com/documentos/libroesf/)

See Also

fSolI, LeeMAPA

Examples

Run this code
#Aranjuez, Madrid
BD<-LeeMAPA(28,3,'01/01/2008','31/12/2008')

lat=41;
BTd=fBTd(Modo='BaseDatos',FechaBaseDatos=BD$Fecha,FormatoFecha="%d/%m/%Y")
BD<-cbind(BTd,BD)

SolD<-fSolD(lat,BTd=BTd)
SolI<-fSolI(SolD,Nm=1)

Temp<-fTemp(SolI,BD)

bwplot(Ta~w|Mes,data=Temp,horizontal=FALSE)

Run the code above in your browser using DataLab