;*************************************** ; rose_1.ncl ;*************************************** ; ; This file is loaded by default in NCL V6.2.0 and newer ; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" ; ; This file still has to be loaded manually load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl" ;*************************************** begin ;*************************************** ; generate test data and add attributes ;*************************************** wrData = wr_GenBogusData (200) wspd = wrData(0,:) wdir = wrData(1,:) wspd@long_name = "Wind Speed" wspd@units = "m/s" wdir@long_name = "Wind Direction" ;****************************** ; specify plot arguments ;****************************** numPetals = 8 ; N, NE, E, SE, S, SW, W, NW circFr = 10. ;****************************** ; generate basic plot ;****************************** wks = gsn_open_wks("png","rose") ; send graphics to PNG file res = True res@tiMainString = "Wind Rose: Basic" plot = WindRoseBasic (wks,wspd,wdir,numPetals,circFr,res) end