fBTd: Daily time base

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

View source: R/fBTd.R

Description

Construction of a daily time base for solar irradiation calculation

Usage

1
2
3
4
5
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 mode = 'serie' the result is a daily time series from start to end. With mode = 'prom' only twelve days, one for each month, are included. During these 'average days' the declination angle is equal to the monthly mean of this angle.

year

which year is to be used for the time base when mode = 'prom'. Its default value is the current year.

start

first day of the time base for mode = 'serie'. Its default value is the first of January of the current year.

end

last day of the time base for mode = 'serie'. Its default value is the last day of December of the current year.

format

format of start and end.

Details

This function is commonly used inside fSolD.

Value

This function returns a POSIXct object.

Author(s)

Oscar Perpiñán Lamigueiro

References

See Also

fSolD, as.POSIXct, seq.POSIXt.

Examples

1
2
3
4
5
6
#Average days
fBTd(mode = 'prom')

#The day #100 of the year 2008
BTd = fBTd(mode = 'serie', year = 2008)
BTd[100]

solaR documentation built on Oct. 19, 2021, 9:06 a.m.