solartime-package: solar time utilities.

solartime-packageR Documentation

solar time utilities.

Description

Provide utilities to work with solar time, i.e. where noon is exactly when sun culminates. Provides functions for computing sun position and times of sunrise and sunset.

Details

Most fundamental functions are

  • corrected fractional hour getSolarTimeHour based on computeSolarToLocalTimeDifference

  • computing position of the sun computeSunPosition

On this basis, properties are computed such as

  • hour of sunrise and sunset: computeSunriseHour,computeSunsetHour

  • daylength in hours: computeDayLength

  • flagging times as day or night: computeIsDayByHour and computeIsDayByLocation and

More utils provide

  • get the hours ahead UTC: getHoursAheadOfUTC

  • get fractional hour of the day: getFractionalHours

Also have a look at the package vignettes.

Author(s)

Thomas Wutzler


solartime documentation built on April 4, 2025, 5:22 a.m.