>  Docs Center  >  Libraries  >  Coyote  >  CGWINDROSE


  This program draws a wind rose diagram. A wind rose diagram shows the frequency, speed, and
  direction of winds over some defined period of time. It is widely used in meteorological
  applications (`see here: <http://en.wikipedia.org/wiki/Wind_rose>`).
  Data to test the program (in SAMPSON formatted data files) can be freely downloaded from
  the `Meteorological Resource Center <http://www.webmet.com/>`.
  Changes made to the program in Oct 2014 allow multiple windrose plots to be placed in
  a graphics window, but with a few reservations. Windrose plots normally have an aspect
  ratio of 1 (i.e., they are square). Unfortunately, this cannot be guaranteed if you use
  !P.Multi to create multiple plots. Therefore, it is recommened that you use cgLayout to
  obtain a multi-plot layout for multiple windrose plots, and give each plot a specific
  position in the graphics window with the `Position` keyword.




    An example of how to use the program can be found in the
    `Coyote Plot Gallery <http://www.idlcoyote.com/gallery/index.html#WINDROSE>`.
    To display multiple plots in the window, set the positions with `cgLayout`, like this::
        pos = cgLayout([2,1], OXMargin=[5,5], OYMargin=[8, 5], XGap=10)
        cgDisplay, 900, 550
        cgWindRose, SamFile='93058_90.sam', Position=pos[*,0], Title='Plot 1', /NoLegend
        cgWindRose, SamFile='94018_90.sam', Position=pos[*,1], Title='Plot 2', LegendPosition=[0.44, 0.325], /NoErase


      David W. Fanning
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com


    Change History::
        Written, 7 March 2013 by David W. Fanning.
        Fixed error in which I was assuming some calm winds. 23 May 2013. DWF.
        Added LegendPosition, Position, CircleLabelSize, and NoLegend keywords and made changes
            that allow multiple windrose plots to be place in a graphics window. To better
            accommodate multiple plots, the cardinal directions are now indicated with a
            single letter and the default circle label font size is reduced. 22 Oct 2014. DWF.
        Fixed a couple of hardcoded number problems when using your own speed and direction vectors. 20 June 2015. DWF.


    Copyright (c) 2013-2014, Fanning Software Consulting, Inc.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us