fTemp: Intradaily evolution of ambient temperature

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/fTemp.R

Description

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

Usage

1
fTemp(sol, BD)

Arguments

sol

A Sol object. It may be the result of the calcSol function.

BD

A Meteo object, as provided by the readSIAR or readBD functions. It must include information about TempMax and TempMin.

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.

Value

A zoo object with the profile of the ambient temperature.

Author(s)

Oscar Perpiñán Lamigueiro.

References

See Also

calcSol, readSIAR, readBD.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
#Aranjuez, Madrid
BD<-readSIAR(28,3,'01/01/2008','31/12/2008')
lat=41;
sol=calcSol(lat, BTd=indexD(BD), sample='hour')
Temp<-fTemp(sol,BD)

###Temperature of March
library(latticeExtra)
wTemp=window(Temp, start=as.POSIXct('2008-03-01'), end=as.POSIXct('2008-03-31'))
xyplot(wTemp)+layer_(panel.xblocks(x, DoY, col=c('lightgray', 'white')))

## End(Not run)

solaR documentation built on May 2, 2019, 6:07 p.m.

Related to fTemp in solaR...