solposx.solarposition.walraven

Contents

solposx.solarposition.walraven#

solposx.solarposition.walraven(times, latitude, longitude)#

Calculate solar position using the Walraven algorithm.

Walraven’s algorithm [1] has a stated accuracy of 0.01 degrees. The implementation accounts for the 1979 Erratum [2] and the correct azimuth quadrant selection [3].

Parameters:
  • times (pandas.DatetimeIndex) – Timestamps - must be localized. Prior to 1970 and far in the future UTC and UT1 may deviate significantly. For such use cases, UT1 times should be provided.

  • latitude (float) – Latitude in decimal degrees. Positive north of equator, negative to south. [degrees]

  • longitude (float) – Longitude in decimal degrees. Positive east of prime meridian, negative to west. [degrees]

Returns:

DataFrame with the following columns (all values in degrees):

  • elevation : actual sun elevation (not accounting for refraction).

  • zenith : actual sun zenith (not accounting for refraction).

  • azimuth : sun azimuth, east of north.

Return type:

pandas.DataFrame

References