solar: Solar Time and Declination

View source: R/SGAT.R

solarR Documentation

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.

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 https://gml.noaa.gov/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

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

slisovski/GeoLight documentation built on June 5, 2024, 4:24 p.m.