solar: Solar Time and Declination

Description Usage Arguments Details Value See Also Examples

View source: R/SGAT.R

Description

Calculate solar time, the equation of time and solar declination

Usage

1
solar(tm)

Arguments

tm

a vector of POSIXct times.

Details

The solar time, the equation of time and the sine and cosine of the solar declination are calculated for the times specified by tm using the same methods as www.esrl.noaa.gov/gmd/grad/solcalc/.

Value

A list containing the following vectors.

solarTime

the solar time (degrees)

eqnTime

the equation of time (minutes of time)

sinSolarDec

sine of the solar declination

cosSolarDec

cosine of the solar declination

See Also

zenith

Examples

1
2
## Current solar time
solar(Sys.time())

SWotherspoon/SGAT documentation built on June 8, 2017, 1:06 a.m.