suncalc: Compute Sun Position, Sunlight Phases, Moon Position and Lunar Phase

Get sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given location and time. Most calculations are based on the formulas given in Astronomy Answers articles about position of the sun and the planets : <>.

Getting started

Package details

AuthorBenoit Thieurmel [aut, cre] (R interface), Achraf Elmarhraoui [aut] (R interface)
MaintainerBenoit Thieurmel <>
LicenseGPL-2 | file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the suncalc package in your browser

Any scripts or data that you put into this service are public.

suncalc documentation built on Sept. 29, 2022, 5:11 p.m.