Learn R Programming

TrenchR (version 1.1.1)

dec_angle: Solar Declination in Radians

Description

The function calculates solar declination, which is the angular distance of the sun north or south of the earth’s equator, based on the day of year Campbell1998TrenchR.

Usage

dec_angle(doy)

Value

numeric declination angle (radians).

Arguments

doy

numeric day of year (1-366). This can be obtained from standard date via day_of_year.

References

See Also

Other utility functions: airpressure_from_elev(), azimuth_angle(), day_of_year(), daylength(), solar_noon(), temperature conversions, zenith_angle()

Examples

Run this code
  dec_angle(doy = 112)
  dec_angle(doy = 360)

Run the code above in your browser using DataLab