Calculates the solar hour angle, which is the measure of time since solar noon in degrees.
Usage
sol_hour_angle(...)
# Default S3 method
sol_hour_angle(datetime, lon, ...)
# S3 method for class 'weather_station'
sol_hour_angle(weather_station, ...)Details
The solar hour angle (\(H\)) is calculated as: $$H = 15 \cdot (T_m + E_t - 12)$$ where: \(T_m\) is the solar medium suntime, \(E_t\) is the solar time formula.
Examples
# Calculate solar hour angle
sol_hour_angle(as.POSIXlt("2022-06-21 12:00:00"), lon = 10)
#> [1] 0.3840178