Skip to contents

Package overview

SunCalcMeeus SunCalcMeeus-package
SunCalcMeeus: Sun Position and Daylight Calculations

Astronomy

Sun-related astronomical computations based on Meeus’ algorithms.

Local solar time

Classes and their methods for astronomical local time.

solar_time()
Local solar time
as.solar_date()
Convert a solar_time object into solar_date object
is.solar_time() is.solar_date()
Query class
format(<solar_time>)
Encode in a Common Format
print(<solar_time>) print(<solar_date>)
Print solar time and solar date objects

Time of day

Class and its methods for local time of day, i.e., times lacking the date component.

as_tod()
Convert datetime to time-of-day
format(<tod_time>)
Encode in a Common Format
print(<tod_time>)
Print time-of-day objects

Quantities dependent on sun position

Computation of equivalent air mass and extraterrestrial solar irradiance.

relative_AM() relative_AMt() relative_AM_geotime() relative_AMt_geotime()
Relative Air Mass (AM)
irrad_extraterrestrial()
Extraterrestrial solar irradiance

Utilities

Various utilities for handling input and output for the functions and methods above.

tz_time_diff()
Time difference between two time zones
validate_geocode() is_valid_geocode() length_geocode() na_geocode()
Validate a geocode