Draws wind barbs on the given workstation.
procedure wmbarb ( wks  : graphic, x [*] : float, y [*] : float, dx [*] : float, dy [*] : float )
[In version 4.3.0 and later] Arrays of any dimensionality specifying X and Y coordinate values.dx
[In version 4.3.0 and later] Arrays of any dimensionality specifying X and Y components of wind vectors at the associated (x,y) coordinates.
If you want to draw wind barbs over a map that are defined on gridded data, then you could use a vector plot with vcGlyphStyle set to "WindBarb". If you want to draw wind barbs over a map that are defined on non-gridded data, then use wmbarbmap.
For the purposes of more fully explaining the arguments in the above, the end of a wind barb where the barbs are drawn will be called the feather end of the barb, and the opposite end will be called the tip.
Using this terminology, the tip of a wind barb will be at coordinate (x,y), and the feather end will be at a point (y+s*dx,y+s*dy), where s is a positive scale factor chosen by the procedure to make the wind barb a standard length. The value of sqrt(dx**2+dy**2) determines the wind speed to use in drawing the barbs. The length of the shaft of the wind barb is controlled by the value of the internal parameter WBS (see below for how to change the value of WBS). The length of the shaft has no relation to the wind speed.
For example, since by convention the feather end of a wind barb points in the direction where the wind is coming from, to draw a wind barb that indicates a wind coming from the north at 20 knots with tip at (0.,0.), you would make the call:
To shift the direction of how the wind barbs are drawn by 180 degrees, set the control parameter WDF to 1.
The procedure wmbarb does not call frame.
[In version 4.3.0 and later] Wind barbs are not plotted where the input data has missing values.
There are several examples on the weather symbols application page.
The following code:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" begin ; ; Create an X11 workstation. ; wks = gsn_open_wks("x11","test") ; ; Draw wind barbs. ; x = (/0.25, 0.75, 0.75, 0.25/) y = (/0.25, 0.25, 0.75, 0.75/) u = (/50., -50., -50., 50./) v = (/50., 50., -50., -50./) wmsetp("wbs",0.2) wmbarb(wks, x, y, u, v) frame(wks) ; ; Get parameter value. ; size = wmgetp("wbs") print(size) end
will draw four wind barbs of the same magnitude, but at different locations and in different directions.