Learn R Programming

SunCalcMeeus (version 0.1.2)

SunCalcMeeus-package: SunCalcMeeus: Sun Position and Daylight Calculations

Description

logo

Compute the position of the sun, and local solar time using Meeus' formulae. Compute day and/or night length using different twilight definitions or arbitrary sun elevation angles. This package is part of the 'r4photobiology' suite, Aphalo, P. J. (2015) tools:::Rd_expr_doi("10.19232/uv4pb.2015.1.14"). Algorithms from Meeus (1998, ISBN:0943396611).

Arguments

Author

Maintainer: Pedro J. Aphalo pedro.aphalo@helsinki.fi (ORCID)

Details

Please see the vignette 0: The R for Photobiology Suite for a description of the suite.

References

Aphalo, Pedro J. (2015) The r4photobiology suite. UV4Plants Bulletin, 2015:1, 21-29. tools:::Rd_expr_doi("10.19232/uv4pb.2015.1.14").

See Also

Examples

Run this code
# daylength
sunrise_time(lubridate::today(tzone = "EET"), tz = "EET",
             geocode = data.frame(lat = 60, lon = 25),
             unit.out = "hour")
day_length(lubridate::today(tzone = "EET"), tz = "EET",
           geocode = data.frame(lat = 60, lon = 25),
           unit.out = "hour")
sun_angles(lubridate::now(tzone = "EET"), tz = "EET",
           geocode = data.frame(lat = 60, lon = 25))

Run the code above in your browser using DataLab