Trees | Index | Help |
---|
Module crepyscule |
|
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.
crepyscule could be use in two modes: for graphics and as a module.Project home page is http://ptaff.ca/crepyscule/
Note:Function Summary | |
---|---|
Extention of class OptionParser for mandatory argument. | |
This is the main function for using crepyscule in command line. | |
Parse the command line and perform all the checks. | |
list |
Returns a list containing the date, variation in daylight. |
dictionnary |
Return a list containing the daylight variation for the year correspoding to this ctime in a dictionnary. |
float |
Get the sun dayligth variation value for this day. |
list |
Returns a list containing the date, maximum solar flux |
dictionnary |
Return a list containing the maximum solar flux for each day in the year where this ctime belongs. |
float |
Get the maximum solar flux value for this day. |
list |
Returns a list containing the date,sun_altitude |
dictionnary |
Return a list containing the sun altitude for this ctime. |
float |
Get the sun altitude value for this day. |
dictionnary |
Get a dictionary containing the sunrise time for the year of the ctime. |
float |
Get the sunrise value for this day. |
list |
Returns a list containing the date,sunrise,sunset in a CSV format. |
dictionnary |
Return a list containing the sunset time for this ctime. |
float |
Get the sunset value for this day. |
list |
Returns a list containing the date and the twilight length in minute. |
dictionnary |
Return a list containing the twilight length in minute for each day in the year where this ctime belongs. |
float |
Get the twilight length in minute value for this day. |
Function Details |
---|
check_required(parser, opt)Extention of class OptionParser for mandatory argument. Comes from http://www.python.org/doc/2.3.4/lib/optparse-extending-examples.html
|
crepyscule(dDataRequest, fLat1, fLon1, ctime, fUTC1=0, sFilename='', sSummerTime1='', fLat2=None, fLon2=None, sSummerTime2='', fUTC2=0, sBackgroundColor='white')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_command_line()Parse the command line and perform all the checks. |
get_daylight_variation_as_csv(ctime, fLat1, fLat2=None)Returns a list containing the date, variation in daylight. See functioncrepyscule_tools.get_daylight_variation_as_csv
for detailed information.
|
get_daylight_variation_as_dict(ctime, fLat)Return a list containing the daylight variation for the year correspoding to this ctime in a dictionnary.
|
get_daylight_variation_day(ctime, fLat)Get the sun dayligth variation value for this day.
|
get_max_sf_as_csv(ctime, fLat1, fLat2=None)Returns a list containing the date, maximum solar flux See functioncrepyscule_tools.get_solar_flux_as_csv
for detailed information.
|
get_max_sf_as_dict(ctime, fLat)Return a list containing the maximum solar flux for each day in the year where this ctime belongs.
|
get_max_sf_day(ctime, fLat)Get the maximum solar flux value for this day.
|
get_sun_altitude_as_csv(ctime, fLat1, fLat2=None)Returns a list containing the date,sun_altitude No use for longitude, UTC or summer time. Use default values. See functioncrepyscule.get_sun_altitude_as_csv for
detailed information.
|
get_sun_altitude_as_dict(ctime, fLat)Return a list containing the sun altitude for this ctime. No use for longitude, UTC or summer time. Use default values.
|
get_sun_altitude_day(ctime, fLat)Get the sun altitude value for this day. No use for longitude, UTC or summer time. Use default values.
|
get_sunrise_as_dict(ctime, fLat, fLon, fUTC=0, sSummerTime='')Get a dictionary containing the sunrise time for the year of the ctime. Keys of dictionary are date in iso8601 format.
|
get_sunrise_day(ctime, fLat, fLon, fUTC=0, sSummerTime='')Get the sunrise value for this day.
|
get_sunrise_sunset_as_csv(ctime, fLat1, fLon1, fUTC1=0, sSummerTime1='', fLat2=None, fLon2=None, fUTC2=0, sSummerTime2='')Returns a list containing the date,sunrise,sunset in a CSV format. See functioncrepyscule_tools.get_sunrise_sunset_as_csv
for detailed information.
|
get_sunset_as_dict(ctime, fLat, fLon, fUTC=0, sSummerTime='')Return a list containing the sunset time for this ctime.
|
get_sunset_day(ctime, fLat, fLon, fUTC=0, sSummerTime='')Get the sunset value for this day.
|
get_twilight_length_as_csv(ctime, fLat1, fLat2=None)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 functioncrepyscule_tools.get_twilight_length_as_csv
for detailed information.
|
get_twilight_length_as_dict(ctime, fLat)Return a list containing the twilight length in minute for each day in the year where this ctime belongs.
|
get_twilight_length_day(ctime, fLat)Get the twilight length in minute value for this day.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jan 28 21:01:07 2009 | http://epydoc.sf.net |