Trees | Indices | Help |
---|
|
Package to get different information related to the sun going around the Earth. It is based on one or two locations on the Earth, based on the lat/lon and, optional, the different time zone and summer time codes. Currently the following information is given by this code: sunrise, sunset, sun altitude, daylight variation, solar flux and twilight.
crepyscule could be use in two modes: for graphics and as a module.
Project home page is http://ptaff.ca/crepyscule/
Note:
|
|||
|
|||
float |
|
||
float |
|
||
dictionnary |
|
||
dictionnary |
|
||
list |
|
||
list |
|
||
dictionnary |
|
||
float |
|
||
list |
|
||
dictionnary |
|
||
float |
|
||
list |
|
||
dictionnary |
|
||
float |
|
||
list |
|
||
dictionnary |
|
||
float |
|
||
|
|||
|
|
|||
t = gettext.translation('crepyscule', sys.path [0]+ '/locale')
|
|||
VERSION =
|
|||
CFG_LONG_OPTIONS =
|
|
This is the main function for using crepyscule in command line. The result is png images and/or text files containing the requested information about the Sun.
|
Get the sunrise value for this day.
|
Get the sunset value for this day.
|
Get a dictionary containing the sunrise time for the year of the ctime. Keys of dictionary are date in iso8601 format.
|
Return a list containing the sunset time for this ctime.
|
Returns a list containing the date,sunrise,sunset in a CSV format. See function crepyscule_tools.get_sunrise_sunset_as_csv for detailed information.
|
Returns a list containing the date,sun_altitude No use for longitude, UTC or summer time. Use default values. See function crepyscule.get_sun_altitude_as_csv for detailed information.
|
Return a list containing the sun altitude for this ctime. No use for longitude, UTC or summer time. Use default values.
|
Get the sun altitude value for this day. No use for longitude, UTC or summer time. Use default values.
|
Returns a list containing the date, variation in daylight. See function crepyscule_tools.get_daylight_variation_as_csv for detailed information.
|
Return a list containing the daylight variation for the year correspoding to this ctime in a dictionnary.
|
Get the sun dayligth variation value for this day.
|
Returns a list containing the date, maximum solar flux See function crepyscule_tools.get_solar_flux_as_csv for detailed information.
|
Return a list containing the maximum solar flux for each day in the year where this ctime belongs.
|
Get the maximum solar flux value for this day.
|
Returns a list containing the date and the twilight length in minute. Note: the twilight length is defined as the duration while the sun is below the horizon and less than 12° below (nautical twilight). See function crepyscule_tools.get_twilight_length_as_csv for detailed information.
|
Return a list containing the twilight length in minute for each day in the year where this ctime belongs.
|
Get the twilight length in minute value for this day.
|
Extention of class OptionParser for mandatory argument. Comes from http://www.python.org/doc/2.3.4/lib/optparse-extending-examples.html
|
|
CFG_LONG_OPTIONS
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Mar 15 16:26:39 2009 | http://epydoc.sourceforge.net |