
WindRoseColor
Plot a wind rose diagram where different colors are used to differentiate speed ranges.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" ; This library is automatically loaded ; from NCL V6.2.0 onward. ; No need for user to explicitly load. load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl" ; Still need to load this library. function WindRoseColor ( wks : graphic, wspd : numeric, wdir : numeric, numPetals : integer, circFr : float, spdBounds : float, colorBounds : string, res : graphic ) return_val : graphic
Arguments
wksA Workstation identifier. The identifier is one returned either from calling gsn_open_wks or calling create to create a Workstation object.
wspdA one-dimensional array of wind speeds (any units).
wdirA one-dimensional array of wind directions (degrees). The wind directions are meteorological; that is, 90 degrees means blowing from the east.
numPetalsNumber of wind rose directions.
circFrIntervals at which frequency circles are drawn.
spdBoundsSpeed bounds for different colors.
colorBoundsColors for each spdBounds interval.
resA variable containing an optional list of plot resources, attached as attributes. Set to True if you want the attached attributes to be applied, and False if you either don't have any resources to set, or you don't want the resources applied. The most common resource to set is the figure title tiMainString.
Return value
A plot identifier of the wind rose is returned.
Description
This function creates a wind rose (i.e., a frequency of wind direction plus average speed). Different wind speed ranges are indicated via different colors.
See Also
WindRoseBasic, WindRoseThickLine
Examples
See Example 3 of the wind rose examples.