Solar Geometry

A library in C for computing the solar geometry. The library "solar_geometry.c" comprises the following items:

  • geometry of the solar beam,
  • sunrise, sunset and daylength,
  • changing the time system,
  • position of the sun in the sky (see an execution of the code in applet Java. Is useful to check the correct implementation),
  • extraterrestrial irradiation,
  • integrated procedures providing the above parameters for a given day, or on monthly or yearly averages.

This library has been changed on 8 July 2004, to account for the differences between geographic and geocentric coordinates. This difference is only for latitude and reaches its maximum of 0.2 degree (approx. 20 km) at 45 degrees. Coordinates in equations for sun geometry are geocentric, while latitudes used by customers are geographic.