pvlib.solarposition.hour_angle(times, longitude, equation_of_time)[source]

Hour angle in local solar time. Zero at local solar noon.

  • times (pandas.DatetimeIndex) – Corresponding timestamps, must be localized to the timezone for the longitude.

  • longitude (numeric) – Longitude in degrees

  • equation_of_time (numeric) – Equation of time in minutes.


hour_angle (numeric) – Hour angle in local solar time in degrees.


[1] J. A. Duffie and W. A. Beckman, “Solar Engineering of Thermal Processes, 3rd Edition” pp. 13, J. Wiley and Sons, New York (2006)

[2] J. H. Seinfeld and S. N. Pandis, “Atmospheric Chemistry and Physics” p. 132, J. Wiley (1998)

[3] Daryl R. Myers, “Solar Radiation: Practical Modeling for Renewable Energy Applications”, p. 5 CRC Press (2013)

See also

equation_of_time_Spencer71(), equation_of_time_pvcdrom()