See a year as a circle. The first day of a (leap) year is 0 degree and the last day 360 degrees.
Usage
sol_day_angle(...)
# Default S3 method
sol_day_angle(datetime, ...)
# S3 method for class 'weather_station'
sol_day_angle(weather_station, ...)Details
The day angle (\(D\)) is calculated as: $$D = \frac{2\pi(J - 1)}{365}$$ where: \(J\) is the Julian day.
Examples
# Calculate day angle
sol_day_angle(as.POSIXlt("2022-06-21"))
#> [1] 168.6575