Skip to content

suntools

Calculate Sun Position, Sunrise, Sunset, Solar Noon and Twilight

v1.1.0 · Nov 6, 2025 · GPL (>= 3)

Description

Provides a set of convenient functions for calculating sun-related information, including the sun's position (elevation and azimuth), and the times of sunrise, sunset, solar noon, and twilight for any given geographical location on Earth. These calculations are based on equations provided by the National Oceanic & Atmospheric Administration (NOAA) <https://gml.noaa.gov/grad/solcalc/calcdetails.html> as described in "Astronomical Algorithms" by Jean Meeus (1991, ISBN: 978-0-943396-35-4).

Downloads

22K

Last 30 days

800th

29.2K

Last 90 days

58K

Last year

Trend: +298.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (8)

Dependency Network

Dependencies Reverse dependencies sf StreamMetabolism overlap EMbC FLightR LightLogR RchivalTag bioRad birdscanR suntools

Version History

new 1.1.0 Mar 10, 2026
updated 1.1.0 ← 1.0.1 diff Nov 6, 2025
updated 1.0.1 ← 1.0.0 diff Nov 19, 2024
new 1.0.0 Jul 5, 2023