Charts - Wind charts: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
mNo edit summary
Line 3: Line 3:


#Wind Rose - Plotting the wind direction and speed in a polar chart;
#Wind Rose - Plotting the wind direction and speed in a polar chart;
#Monthly Rain - Plotting the wind speed in a stacked column chart;
#Monthly Windrun - Plotting the windrun in a stacked column chart;


Below you will find an example image of each chart and an explanation of the origin of the numbers.
Below you will find an example image of each chart and an explanation of the origin of the numbers.

Revision as of 20:05, 1 April 2022

Introduction

The Wind charts submodule consists of two charts:

  1. Wind Rose - Plotting the wind direction and speed in a polar chart;
  2. Monthly Windrun - Plotting the windrun in a stacked column chart;

Below you will find an example image of each chart and an explanation of the origin of the numbers.

Wind Rose

Wind Rose

The rather complex chart presents the wind speed and direction in a so called polar chart. For each direction in the compass rose a stacked column is displayed as a cone towards the centre (or from the centre outward). The display is subdivided for every year and every month within the year.

The chart is configured with the following parameters (explained in the chapter Charts):

  WindRoseNrOfWindforceClasses=6                           (default = 6)
  WindRoseMaxWindSpeed=60                                  (default = 60)
  WindRoseInversed=false | true                            (default = false)


Calculation of the Wind Rose

The wind rose is based on the figures in the monthly log files. Those files are read and every measurement has a Latest Wind Speed (See terminology, field nr 14).

The direction is taken from the Current Windbearing, field nr 25. However, field nr 25 does exist only from version 1.9.2 and up. If the datafile is from an earlier version the next best value is taken for the wind direction namely the average windbearing, field nr 8.

Every record in the database is taken as a sample and counted for the speed and direction classes and as such presented in the chart. Especially for the high frequency sampling (one or five minutes) this will give an accurate picture of the wind speed and direction figures. For the lower frequency sampling this picture may be less accurate for the month level.

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 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

Wind Run

Total wind run per day is shown as a stacked column per month. For every day in a month the wind run is taken and counted into the class it belongs to. The wind 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.