Function Summary |
|
draw_sunrise_sunset (npSunrise,
npSunset,
npSunTime,
nIndiceStartSunrise,
nIndiceEndSunrise,
nIndiceStartSunset,
nIndiceEndSunset,
lDateISO8601,
sLty,
sColorSunrise,
sColorSunset,
sColorTotalTime)
Draw sunrise and sunset lines on the graphics. |
|
init_time_values (lDateISO8601)
Set the value of time used by the graphs. |
|
plot_altitude (tToday,
lSunAltitude,
lDateISO8601,
sFilename,
sBackgroundColor,
lSunAltitude2)
Plot the altitude of the sun during a year. |
|
plot_daylight_differences (lSunrise1,
lSunset1,
lDaylength1,
lDateISO8601,
sFilename,
tToday,
sBackgroundColor,
lSunrise2,
lSunset2,
lDaylength2)
Plot the difference of daylight time between consecutive days. |
|
plot_max_solar_flux (lDateISO8601,
sFilename,
tToday,
sBackgroundColor,
fLat1,
fLat2)
Plot the maximal solar flux in W/m^2 for all year. |
|
plot_monthly (lMonthLight,
sFilename)
DEPRECATED Plot a graphical with total hour of light for each
month. |
|
plot_sunset_sunrise (lSunrise,
lSunset,
lDaylength,
lDateISO8601,
sFilename,
tToday,
sBackgroundColor,
lSunrise2,
lSunset2,
lDaylength2)
Plot the sunset and the sunrise of one year. |
|
plot_twilight_length (sFilename,
tToday,
sBackgroundColor,
fLat1,
dTwilightLength1,
fLat2,
dTwilightLength2)
Plot the twilight length in minutes for all year. |
|
__draw_today (tToday,
fTodayValue,
sLabel,
fMiddleOfGraph)
Draw a line in the graphic for the value of the current day. |
|
__draw_today_sun (tToday,
fSunriseTime,
fSunsetTime)
Add information about current day on the graphics of sunset and
sunrise. |
draw_sunrise_sunset(npSunrise,
npSunset,
npSunTime,
nIndiceStartSunrise,
nIndiceEndSunrise,
nIndiceStartSunset,
nIndiceEndSunset,
lDateISO8601,
sLty='solid',
sColorSunrise='orange',
sColorSunset='red',
sColorTotalTime='blue')
Draw sunrise and sunset lines on the graphics. This function is
empiric. It has been developed by trials and errors, there is not much
to understand.
There is only two complex case that are handled: when the sunrise
(sunset) curve goes under (over) zero (24) value during one segment. In
this case, there is 3 curves that are created corresponding to the
value of rX_axis1, rX_axis2 and rX_axis3.
-
- Parameters:
npSunrise -
Array of sunrise values for one year to be displayed.
(type=numpy.array)
npSunset -
Array of sunset values for one year to be displayed.
(type=numpy.array)
nIndiceStartSunrise -
Indice where the sunrise goes under the zero value. If there
is no such place, zero is given.
(type=int)
nIndiceEndSunrise -
Indice where the sunrise goes over zero if it ever goes under
it. If it does not occurs, the length of the array (365 or 366)
is given.
(type=int)
nIndiceStartSunset -
Indice where the sunrise goes over 24 value. If there is no
such place, zero is given.
(type=int)
nIndiceEndSunset -
Indice where the sunset goes under 24 if it ever goes over it.
If it does not occurs, the length of the array (365 or 366) is
given.
(type=int)
lDateISO8601 -
List of strings for one year in iso8601 format.
(type=list)
sLty -
R Line style. See help for 'lty' in the 'par' documentation in
R
(type=string)
sColorSunrise -
Color of sunrise curve. See Chart
of R colors for possible values.
(type=string)
sColorSunset -
Color of sunset curve. See Chart
of R colors for possible values.
(type=string)
sColorTotalTime -
Color of total time of day curve. See Chart
of R colors for possible values.
(type=string)
|