Here’s a unique Propeller code object providing the functionality of a Solar Position Calculator & Almanac. Written in Spin by Prophead100, this object takes input including date, local/solar time, latitude, longitude and daylight savings time status, and calculates “a good approximation of the position (altitude and azimuth) of the sun at any time (local clock or solar) during the day as well as events such as solar noon, sunrise, sunset, twilight (astronomical, nautical, civil), and day length. Derived values such as the equation of time, time meridians, hour angle, day of the year and declination are also provided.” This could be useful in designing a solar tracking system.
A demo program is included in the download and the heavy commenting is welcome, making these complex calculations easier to follow.
Via the Propeller Object Exchange.