C_fBTd {solaR} | R Documentation |
Daily time base
Description
Construction of a daily time base for solar irradiation calculation
Usage
fBTd(mode = "prom",
year = as.POSIXlt(Sys.Date())$year+1900,
start = paste('01-01-',year,sep = ''),
end = paste('31-12-',year,sep = ''),
format = '%d-%m-%Y')
Arguments
mode |
character, controls the type of time base to be
created. With |
year |
which year is to be used for the time base when |
start |
first day of the time base for |
end |
last day of the time base for |
format |
format of |
Details
This function is commonly used inside fSolD
.
Value
This function returns a POSIXct
object.
Author(s)
Oscar Perpiñán Lamigueiro
References
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), 1-32, doi: 10.18637/jss.v050.i09
See Also
fSolD
,
as.POSIXct
,
seq.POSIXt
.
Examples
#Average days
fBTd(mode = 'prom')
#The day #100 of the year 2008
BTd = fBTd(mode = 'serie', year = 2008)
BTd[100]