Differences between revisions 2 and 3
Revision 2 as of 2009-06-09 15:30:49
Size: 216
Editor: CarlNobile
Comment:
Revision 3 as of 2009-06-09 15:44:58
Size: 515
Editor: CarlNobile
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
The constructor takes three positional arguments and one keyword argument.

{{{
ss = SunriseSunset(date, lat, lon, zenith='official')
}}}

There are two callable methods after the class is instantiated.

{{{
rise, set = ss.getSunRiseSet()
}}}

and

{{{
isNight = ss.isNight()
}}}

Sunrise Sunset

This class will determine the sunrise and sunset. It can use either official, civil, nautical, amateur, or astronomical zenith.

The constructor takes three positional arguments and one keyword argument.

ss = SunriseSunset(date, lat, lon, zenith='official')

There are two callable methods after the class is instantiated.

rise, set = ss.getSunRiseSet()

and

isNight = ss.isNight()

sunrisesunset.py

SunriseSunset (last edited 2015-08-17 01:55:30 by CarlNobile)