<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
Dear Dennis,</div>
<div class="elementToProof" style="font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks for your assistance.</div>
<div class="elementToProof" style="font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
I have tested the revised loading wind_rose.ncl.</div>
<div class="elementToProof" style="font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
<i>dirFrMaxNumCircles = 3 ;toint(dirFrMax/circFr +1.)<br>
dirFrMaxNum = circFr*dirFrMaxNumCircles ; number of circles < Comment</i></div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
Then, I get a confirm 3-circles windrose figure. Million thanks!</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hope you have a good day!</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Times, "Times New Roman", serif; font-size: 11pt; color: rgb(0, 0, 0);">
Chang</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Dennis Shea <shea@ucar.edu><br>
<b>Sent:</b> Saturday, 17 August 2024 1:05 am<br>
<b>To:</b> LIU Chang <cliucv@connect.ust.hk><br>
<b>Cc:</b> ncl-talk@mailman.ucar.edu <ncl-talk@mailman.ucar.edu><br>
<b>Subject:</b> Re: [ncl-talk] question about windrose circles</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div><b><a href="https://www.ncl.ucar.edu/Applications/rose.shtml" originalsrc="https://www.ncl.ucar.edu/Applications/rose.shtml" shash="kVRtDhy9k/lLjqDzenUOanM2btHjeCPSI1Fh//oqMyV4i/fqJ1xE2ynGeotTq2atB7cYKkMfZ+E3Je+smxFbSor8BKNrvuIFhQ1NNGh7Bf1IkEJKXQpJHyoJiYKnDNUMf7Sn8Lp5DQD4eLpXAiwe9XdotQlm1GA4XJW/cQnOOHU=">https://www.ncl.ucar.edu/Applications/rose.shtml</a><br>
</b></div>
<div><b><br>
</b></div>
<div>I have looked at the function code.</div>
<div><br>
</div>
<div>%> less $NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl</div>
<div><br>
</div>
<div>===</div>
<div>lines:</div>
<div><br>
</div>
<div> dirFrMaxNumCircles = toint(dirFrMax/circFr +1.)<br>
dirFrMaxNum = circFr*dirFrMaxNumCircles ; number of circles<br>
</div>
<div>===</div>
<div><br>
</div>
<div>The following is untested ....<br>
</div>
<div><br>
</div>
<div>Perhaps making a copy of 'wind_rose.ncl' a</div>
<div><br>
</div>
<div>%> cp $NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl wind_rose.liu_chang.ncl</div>
<div><br>
</div>
<div>Then, make a modification to wind_rose.liu_chang.ncl such as <br>
</div>
<div><br>
</div>
<div>
<div> dirFrMaxNumCircles = toint(dirFrMax/circFr +1.)<br>
; dirFrMaxNum = circFr*dirFrMaxNumCircles ; number of circles < Comment<br>
</div>
<div> dirFrMaxNum = 3</div>
<div><br>
</div>
<div><br>
</div>
<div>then use the new code via<br>
</div>
<div><br>
</div>
<div>load "./wind_rose.liu_chang.ncl"</div>
<div><br>
</div>
<div>Again ... this is untested.</div>
<div><br>
</div>
<div>Good luck<br>
</div>
<div> <br>
</div>
<div><br>
</div>
</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Aug 16, 2024 at 2:56 AM LIU Chang via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg2584619776754372661">
<div dir="ltr">
<div style="font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">Dear all,</div>
<div style="font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)"><br>
</div>
<div style="text-align:left; text-indent:0px; white-space:pre-wrap; margin:0px 0px 16px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
I am encountering an issue when using a similar script to <a href="https://www.ncl.ucar.edu/Applications/Scripts/rose_5.ncl" originalsrc="https://www.ncl.ucar.edu/Applications/Scripts/rose_5.ncl" shash="VKBCVEfjMFcwxtW+Z6f0Kcxlqdb8eo5JZz85nJQ1036HosvUCqFpBppxZBNWVlwBa50ZmSn0WbFnJ2ikyu4naIqZkHdNK8Gfa/jRfE5rs8nLjzOsLc3ntLs3EZWzqrUsOF5RrDKmbD0rxakyah/wTWBDfvRnhcdtfTPoN23raAI=" id="x_m_2584619776754372661OWA3e9bd0f5-9523-623f-3ff1-a5450f7fc8c9" target="_blank" style="margin:0px; text-align:left">
https://www.ncl.ucar.edu/Applications/Scripts/rose_5.ncl</a> to plot a wind rose. The circles in the plot seem to appear randomly, with two or three circles being generated.</div>
<div style="text-align:left; text-indent:0px; white-space:pre-wrap; margin:0px 0px 16px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
<img size="35136" style="max-width:1749px" data-outlook-trace="F:1|T:1" src="cid:ii_1915c1b06adcb971f161"></div>
<div style="font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)"><br>
</div>
<div style="text-align:left; text-indent:0px; white-space:pre-wrap; margin:0px 0px 16px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
Could you please advise if there are any functions or settings that can ensure the number of circles, either two or three?</div>
<div style="text-align:left; text-indent:0px; white-space:pre-wrap; margin:0px 0px 16px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
Thank you for your assistance.</div>
<div style="margin:0px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
Best regards,</div>
<div style="margin:0px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
Chang</div>
<div style="margin:0px; font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)">
<br>
<br>
</div>
<div style="font-family:mru_Calibri; font-size:11pt; color:rgb(0,0,0)"><br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" originalsrc="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" shash="OuzdvFJJzNFwBTzgZ+585xxsRRDELaqf9pqXaXQo30zhpT3N5g02+DmGdl9zlU0VXmQo3E+IGs4OfWUp0UnJ5lW+CSagZK4aiPfV/CTbnUo1gpI8wlQWiS6FCtd6CxTDIJYuqcl/B47VX8z+y7V+agDquFUy3PAWep2WB92BN1A=" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div>
</blockquote>
</div>
</div>
</body>
</html>