pvlib.solarposition.hour_angle#
- pvlib.solarposition.hour_angle(times, longitude, equation_of_time)[source]#
Hour angle in local solar time. Zero at local solar noon.
- Parameters:
times (
pandas.DatetimeIndex
) –Corresponding timestamps, must be localized to the timezone for the
longitude
.A pytz.exceptions.AmbiguousTimeError will be raised if any of the given times are on a day when the local daylight savings transition happens at midnight. If you’re working with such a timezone, consider converting to a non-DST timezone (e.g. GMT-4) before calling this function.
longitude (numeric) – Longitude in degrees
equation_of_time (numeric) – Equation of time in minutes.
- Returns:
hour_angle (numeric) – Hour angle in local solar time in degrees.
References