declination: Compute declination angle

Description Usage Arguments Value Note References Examples

Description

Compute the declination of the sun at solar noon based on the day of the year.

Usage

1
2
declination(n, formula = c("Cooper", "Spencer"), unit = c("radians",
  "degrees"))

Arguments

n

Day of the year (DOY) as integer or Date from which to derive DOY.

formula

character, formula from which to calculate the angular declination of the sun, specified through the name of the author (see References). Currently, the approximation equation from Cooper (1969) and the more accurate version from Spencer (1971) are available.

unit

character, determines whether to return the declination angle in radians (default) or degrees.

Value

A numeric declination angle.

Note

"The declination of the sun is the angle between the equator and a line drawn from the centre of the Earth to the centre of the sun." (directly taken from http://www.pveducation.org/pvcdrom/properties-of-sunlight/declination-angle)

References

The formulas are taken from the following sources:

See also

for further information.

Examples

1
2
3
4
## calculate current declination angles
sapply(c("Cooper", "Spencer"), function(frml) {
  declination(Sys.Date(), formula = frml)
})

environmentalinformatics-marburg/satelliteTools documentation built on May 16, 2019, 8:16 a.m.