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 calculted 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())

Example output

Loading required package: maps
$solarTime
[1] 224.1853

$eqnTime
[1] 7.816461

$sinSolarDec
[1] -0.007169341

$cosSolarDec
[1] 0.9999743

GeoLight documentation built on May 1, 2019, 8 p.m.