by Mustapha Mekhatria
Wind barbs visualize wind speed and direction in one graphical form. The stem direction defines the wind direction, while the barbs’ numbers and shapes define the wind speed.
For more detailed samples and documentation check the API.
Click here to check the code.
Each wind barb point has an
value, and a
value sets the wind speed in meter per second. The resulting graphic, by convention, adds a full barb for each 10 knots (5,14 m/s) and a half barb for each 5 knots (2.57 m/s).
direction is given in degrees, where 0 is a northerly wind, pointing towards the south.
See the full set of options in the API.