Calculates the solar medium anomaly, which is the angular distance of the Earth from its perihelion.
Usage
sol_medium_anomaly(...)
# Default S3 method
sol_medium_anomaly(datetime, ...)
# S3 method for class 'weather_station'
sol_medium_anomaly(weather_station, ...)Details
The solar medium anomaly (\(M\)) is calculated as: $$M = 356.6 + 0.9856 \cdot J$$ where: \(J\) is the Julian day.
Examples
# Calculate solar medium anomaly
sol_medium_anomaly(as.POSIXlt("2022-06-21"))
#> [1] 526.1232