Calculates the solar time formula, which corrects the solar medium suntime to account for the Earth's elliptical orbit and axial tilt.
Usage
sol_time_formula(...)
# Default S3 method
sol_time_formula(datetime, lon, ...)
# S3 method for class 'weather_station'
sol_time_formula(weather_station, ...)Details
The solar time formula (\(E_t\)) is calculated as: $$E_t = 0.1644 \cdot \sin(2L) - 0.1277 \cdot \sin(M)$$ where: \(L\) is the ecliptic longitude, \(M\) is the solar medium anomaly.
Examples
# Calculate solar time formula
sol_time_formula(as.POSIXlt("2022-06-21 12:00:00"), lon = 10)
#> [1] 0.02560119