Plotting Wind Direction and Speed

wind

The chart above plots the wind direction and speed using a new chart type we’ll be releasing on December 1st. It’s available now in Entrance preview versions downloadable from the test area.

The red lines show wind gusts recorded on Ben Lomond Mountain during a recent “wind event”, and blue lines show show average wind recorded during the same times. Its very easy to see the increase in wind speed at about noon on the 27th and lasting through about noon on the 28th.

The new type is “DateTimeDirChart”, and it can plot vectors along a time axis. It requires X, DIRECTION and LENGTH columns for the vectors. The X column should contain datetime values and DIRECTION should contain angles, 0-360 degrees.

For example, this plots a single series of wind vectors using data from table “raws_bl”:
 
dt                     wind_speed  wind_dir     
---------------------  ----------  --------   
2009-10-25 07:50:00.0           8        20     
2009-10-25 08:50:00.0           6         0     
2009-10-25 09:50:00.0           9        10     
2009-10-25 10:50:00.0           0        20     
2009-10-25 11:50:00.0           8        10     
... and so on ...


PLOT DateTimeDirChart
    X, LENGTH, RED DIRECTION
SELECT
    dt, wind_speed, wind_dir FROM raws_bl;

Click on the chart to see the complete script for the example above.

One Response to “Plotting Wind Direction and Speed”

  1. [...] IDE 1.5 also supports DatetimeDirCharts, which plot direction changes on a datetime axis: see “Plotting Wind Direction and Speed” for the [...]