Downloadliste

Projektbeschreibung

Sunrise Sunset is a Python package that can determine the sunrise and
sunset based on a given altitude zenith. It has two public methods. The
first returns the sunrise and sunset in a tuple. The second returns
True or False depending on whether the supplied date/time is during the
night or day. The constructor takes three arguments, a date, latitude,
and longitude. There is one keyword argument for changing the default
zenith, which is set to "official". The zeniths are "official", "civil",
"nautical", "amateur" (astronomical), and "astronomical". It does not
rely on third party packages, but you may need something like pytz to
create dates with timezone info.

Systemanforderungen

Die Systemvoraussetzungen sind nicht definiert
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2010-01-25 11:07
1.0.1

Dieses Release behebt einen Bug, bei dem atan gab die falschen Werte unter bestimmten Situationen. Der Code nutzt jetzt atan2. Es fügt ein optionales Kragen um Sonnenaufgang und Sonnenuntergang beim Aufruf der Methode isNight. Auf diese Weise können Sie den Sonnenauf-und Sonnenuntergang durch eine Spannweite von Minuten fudge. Dies wurde durch ein Amateur-Astronom vorgeschlagen. Auch in dieser Version nicht enthalten sind die API-Dokumentation im HTML-Formular.
Tags: Minor, Stable
This release fixes a bug where atan was giving the wrong values under certain situations. The code now uses atan2. It adds an optional collar around sunrise and sunset when calling the isNight method. This will allow you to fudge the sunrise and sunset by some span of minutes. This was suggested by an amateur astronomer. Also included in this release are the API docs in HTML form.

2009-06-12 05:52
1.0

Initial release.
Tags: Initial release
Initial release.

Project Resources