[ncl-talk] question about windrose circles
LIU Chang
cliucv at connect.ust.hk
Fri Aug 16 11:47:48 MDT 2024
Dear Dennis,
Thanks for your assistance.
I have tested the revised loading wind_rose.ncl.
dirFrMaxNumCircles = 3 ;toint(dirFrMax/circFr +1.)
dirFrMaxNum = circFr*dirFrMaxNumCircles ; number of circles < Comment
Then, I get a confirm 3-circles windrose figure. Million thanks!
Hope you have a good day!
Best regards,
Chang
________________________________
From: Dennis Shea <shea at ucar.edu>
Sent: Saturday, 17 August 2024 1:05 am
To: LIU Chang <cliucv at connect.ust.hk>
Cc: ncl-talk at mailman.ucar.edu <ncl-talk at mailman.ucar.edu>
Subject: Re: [ncl-talk] question about windrose circles
https://www.ncl.ucar.edu/Applications/rose.shtml
I have looked at the function code.
%> less $NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl
===
lines:
dirFrMaxNumCircles = toint(dirFrMax/circFr +1.)
dirFrMaxNum = circFr*dirFrMaxNumCircles ; number of circles
===
The following is untested ....
Perhaps making a copy of 'wind_rose.ncl' a
%> cp $NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl wind_rose.liu_chang.ncl
Then, make a modification to wind_rose.liu_chang.ncl such as
dirFrMaxNumCircles = toint(dirFrMax/circFr +1.)
; dirFrMaxNum = circFr*dirFrMaxNumCircles ; number of circles < Comment
dirFrMaxNum = 3
then use the new code via
load "./wind_rose.liu_chang.ncl"
Again ... this is untested.
Good luck
On Fri, Aug 16, 2024 at 2:56 AM LIU Chang via ncl-talk <ncl-talk at mailman.ucar.edu<mailto:ncl-talk at mailman.ucar.edu>> wrote:
Dear all,
I am encountering an issue when using a similar script to https://www.ncl.ucar.edu/Applications/Scripts/rose_5.ncl to plot a wind rose. The circles in the plot seem to appear randomly, with two or three circles being generated.
[cid:ii_1915c1b06adcb971f161]
Could you please advise if there are any functions or settings that can ensure the number of circles, either two or three?
Thank you for your assistance.
Best regards,
Chang
_______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu<mailto:ncl-talk at mailman.ucar.edu>
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240816/5e717b8f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35136 bytes
Desc: image.png
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240816/5e717b8f/attachment.png>
More information about the ncl-talk
mailing list