Charts - Wind charts: Difference between revisions

m
no edit summary
mNo edit summary
 
NOTE: because of this calculation this graph takes a high toll on the performance of CumulusUtils: first because reading the monthly logs is expensive - especially when sampling on minute or five minute frequency - and secondly because the list is long (millions of records when using minute sampling) and making the sub selections per month again takes its toll. Optimisation of this chart is continuous work in progress. Performance of CumulusUtils is highly dependent on the hardware it is running on.
 
=== Number of compass sectors ===
The number of sectors in the compass rose can be either 16 or 8 depending on the weather station you have. CumulusUtils takes the number of sectors from the [[Cumulus.ini]] file, section ''[Display]'', parameter ''NumWindRosePoints''. From there CumulusUtils calculates the wind classes and takes the values from the datafiles which it then plots. So far so good.
 
The labels for the compass rose are taken from the [[Language_in_CumulusUtils|language file]] section ''[Graphs]'', parameter ''CompassSectors'', which has an English default value of 16 directions:
 
["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"]
 
to be translated for other languages of course when required.
 
Now obviously when you only have 8 sectors in the station you only need 8 directions in this string so my advice would be you turn this string into :
 
["N", "NE", "E", "SE", "S", "SW", "W", "NW"]
 
which gives you the labels as wanted.
'''NOTE: This string may NOT contain single quotes!!'''
 
This is not done in code because the user most likely will have to translate and it has to be seen as set-up even if you are English.
 
== Wind Run ==
[[File:WindRun.jpg|thumb|right|Wind Run]]
Total windrunwind run per day is shown as a stacked column per month. For every day in a month the windrunwind run is taken and counted into the class it belongs to. The windrunwind run class width parameter value (''WindrunClassWidth'') is given by the user who estimates a width such that the number of classes is reasonable depending on unit and actual local wind conditions.
 
The chart can be shown for ''All Time'' or for a specific year, selectable by the user.