[ncl-talk] question about windrose circles
Dennis Shea
shea at ucar.edu
Fri Aug 16 11:05:42 MDT 2024
*https://www.ncl.ucar.edu/Applications/rose.shtml
<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> 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.
>
> 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
> 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/efb9f5cc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35136 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240816/efb9f5cc/attachment.png>
More information about the ncl-talk
mailing list