Learn R Programming

GeoLight (version 2.0.0)

solar: Solar Time and Declination

Description

Calculate solar time, the equation of time and solar declination

Usage

solar(tm)

Arguments

tm
a vector of POSIXct times.

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

Details

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

See Also

zenith

Examples

Run this code
## Current solar time
solar(Sys.time())

Run the code above in your browser using DataLab