Sunrise/set routines
I converted a set of routines which calculate the sunrise/set times
from Java to Python. Original by Paul Schlyter, written in C. UPDATE: Miguel Tremblay kindly contributed with an updated
version, which also can calculate the sun altitude in degrees. He
also added char-encoding for newer Python versions. Thanks Miguel! UPDATE2 (25.11.2007): New version from Miguel which includes
method for calculating maximal solar flux for a day in certain latitude.