solposx.solarposition.iqbal

Contents

solposx.solarposition.iqbal#

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

Calculate solar position using the Iqbal algorithm.

The Iqbal algorithm [1] is based on equations in [2].

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