<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Rick,<br>
&nbsp; &nbsp;Thanks for the reply (and compliment!) It's roughly in this order:</p>
<p><br>
<span style="color: rgb(114, 50, 173);">&nbsp;gsn_csm_contour_map</span></p>
<p><br>
</p>
<p><span style="color: rgb(75, 165, 36);">;;;; this type of&nbsp;</span><span style="color: rgb(75, 165, 36);">step many times</span></p>
<div><span style="color: rgb(75, 165, 36);">plots</span><span style="color: rgb(75, 165, 36);">#</span><span style="color: rgb(75, 165, 36);">= gsn_csm_contour(</span><span style="color: rgb(75, 165, 36);">stuff</span><span style="color: rgb(75, 165, 36);">)</span></div>
<div><span style="color: rgb(75, 165, 36);">overlay(plot,plots</span><span style="color: rgb(75, 165, 36);">#</span><span style="color: rgb(75, 165, 36);">)</span></div>
<p><br>
</p>
<p><span style="color: rgb(0, 111, 201);">;; done for however many winds qualify as &gt; 25 mph</span></p>
<p></p>
<span style="color: rgb(0, 111, 201);">
<div>do n=0,size(0)-1,1</div>
<div>&nbsp; &nbsp; &nbsp; if sitewinds(n).gt.25</div>
<div>&nbsp; &nbsp; &nbsp; tres@txFontOpacityF = 1-(sitewindtime(n)/35)</div>
<div>&nbsp; &nbsp; &nbsp; stationtext &nbsp;= &nbsp; &nbsp; gsn_add_text(wks,plot,round(sitewinds(n),3),sitewindlons(n),sitewindlats(n),tres)</div>
<div>&nbsp; &nbsp; &nbsp; end if</div>
<div>end do</div>
</span>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;"><span style="color: rgb(208, 92, 18);">;</span><span style="color: rgb(208, 92, 18);">&nbsp;done once</span></span></div>
<div><span style="font-size: 12pt; color: rgb(208, 92, 18);">vector &nbsp;= gsn_csm_vector(wks,udata,vdata,res_vc)</span><br>
</div>
<div>
<div><span style="color: rgb(208, 92, 18);">overlay(plot,vector)</span></div>
<p><br>
</p>
<p>I've tried flipping the order of those last two, but with no success. It's honestly not a huge issue, but I thought I would pass it along. I could pass along my script if you would like (I would here, but it's *very* long.)</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<p><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Nick Bassill, PhD</span></p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
Modeler &amp;&nbsp;Meteorologist, New York State Mesonet</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
LC SB-28, 1400 Washington Ave.,</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
SUNY, University at Albany, NY 12222</p>
(518) 442-6375
<p></p>
<p>http://nysmesonet.org/<br>
</p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Rick Brownrigg &lt;brownrig@ucar.edu&gt;<br>
<b>Sent:</b> Monday, June 12, 2017 6:10 PM<br>
<b>To:</b> Bassill, Nicholas<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Odd Reference Vector Opacity Issue</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi Nick,<br>
<br>
</div>
I unfortunately am not able to duplicate this issue (?)&nbsp; I've used 6.3.0, and I cobbled together a plot that uses, in order<br>
<br>
</div>
gsn_csm_contour_map<br>
</div>
gsn_add_text to the contour<br>
</div>
gsn_csn_vector<br>
...<br>
</div>
overlay(plot, vector)<br>
<br>
</div>
and I've tried to used the same resources everywhere.&nbsp; Are any other opacity resources getting set in the script?<br>
<br>
</div>
I'm not sure what to tell you...<br>
</div>
Rick<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jun 9, 2017 at 2:03 PM, Rick Brownrigg <span dir="ltr">
&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>Hi Nick,<br>
<br>
</div>
That likely is indeed a bug and I will look into it and let you know.<br>
<br>
</div>
That's a nice looking animation BTW!<br>
<br>
</div>
Rick<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Fri, Jun 9, 2017 at 1:01 PM, Bassill, Nicholas <span dir="ltr">
&lt;<a href="mailto:nbassill@albany.edu" target="_blank">nbassill@albany.edu</a>&gt;</span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr">
<div id="m_8669426313058719336m_8453489966361494127divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi All,<br>
&nbsp;I *think* I may have found a bug. For reference, I'm using NCL 6.3. Long story short, I make a complex plot in real time with lots of overlays of various variables, mostly for aid in severe weather prediction/detection, using NY Mesonet data. I denote strong
 wind gusts, and change their opacity to reflect how long ago they occurred. Here is a sample loop from today:&nbsp;<a href="http://www.atmos.albany.edu/facstaff/nbassill/live/NCLexample.gif" class="m_8669426313058719336m_8453489966361494127OWAAutoLink" id="m_8669426313058719336m_8453489966361494127LPlnk485893" target="_blank">http://www.atmos.albany<wbr>.edu/facstaff/nbassill/live/<wbr>NCLexample.gif</a><br>
<br>
You'll notice the winds gusts&nbsp;(properly) change their opacity with time. The weird thing is that the reference vector changes its opacity with time as well, despite the fact I'm not instructing it to. The code is very long, so I'll just send the important parts
 of the script, below:</p>
<p><br>
</p>
<p>....</p>
<p>;;;; this part plots the site winds, and determines opacity based on time</p>
<p></p>
<div><br>
</div>
<div>size = dimsizes(sitewindtime)-1</div>
<div>tres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>tres@tfPolyDrawOrder &nbsp;= &quot;PostDraw&quot;</div>
<div>tres@txFont = &quot;helvetica-bold&quot;</div>
<div>tres@txFontHeightF &nbsp; &nbsp; &nbsp; &nbsp;= 0.013</div>
<div>;tres@txFontThicknessF = 3</div>
<div>do n=0,size(0)-1,1</div>
<div>&nbsp; &nbsp; &nbsp; if sitewinds(n).gt.25</div>
<div>&nbsp; &nbsp; &nbsp; tres@txFontOpacityF = 1-(sitewindtime(n)/35)</div>
<div>&nbsp; &nbsp; &nbsp; stationtext &nbsp;= &nbsp; &nbsp; gsn_add_text(wks,plot,round(si<wbr>tewinds(n),3),sitewindlons(n),<wbr>sitewindlats(n),tres)</div>
<div>&nbsp; &nbsp; &nbsp; end if</div>
<div>end do</div>
<div><br>
</div>
....&nbsp;
<p></p>
<p><br>
</p>
<p></p>
<div>;;;; vector stuff</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= res</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcGlyphStyle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;LineArrow&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcLineArrowThicknessF &nbsp; &nbsp; &nbsp;= 5</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcMinDistanceF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0.01</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefLengthF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0.03</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefMagnitudeF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 25&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoString1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= &quot;25 mph&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoSide &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Top&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoString2On &nbsp; &nbsp; &nbsp; &nbsp;= False</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoPerimOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= False</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoOrthogonalPosF &nbsp; = -0.76 &nbsp; &nbsp;; more positive moves up</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoParallelPosF &nbsp; &nbsp; = 0.94 &nbsp; &nbsp;; more positive moves to right</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcRefAnnoBackgroundColo<wbr>r &nbsp;= &quot;SkyBlue&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcVectorDrawOrder &nbsp; &nbsp; &nbsp; &nbsp; = &quot;PreDraw&quot;</div>
<div></div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcMinAnnoFontHeightF &nbsp; &nbsp; &nbsp;= .012</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@vcGlyphOpacityF &nbsp; = 1&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; res_vc@txFontOpacityF = 1</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; vector &nbsp;= gsn_csm_vector(wks,udata,vdata<wbr>,res_vc)</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; overlay(plot,vector)</div>
<div><br>
</div>
<p>....</p>
<p><br>
</p>
<p></p>
<div>;;; next two lines were my attempt to try resetting things before drawing</div>
<div>tres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>tres@txFontHeightF &nbsp; &nbsp; &nbsp; &nbsp;= 0.01 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
<div><br>
</div>
<div>draw(plot)</div>
<div><br>
</div>
<p>-----------------</p>
<p><br>
</p>
<p>If anyone has any suggestions, please let me know.&nbsp;</p>
<p><br>
</p>
<div id="m_8669426313058719336m_8453489966361494127Signature">
<div id="m_8669426313058719336m_8453489966361494127divtagdefaultwrapper" style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols">
<p><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Nick Bassill, PhD</span></p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
Modeler &amp;&nbsp;Meteorologist, New York State Mesonet</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
LC SB-28, 1400 Washington Ave.,</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
SUNY, University at Albany, NY 12222</p>
<a href="tel:(518)%20442-6375" value="&#43;15184426375" target="_blank">(518) 442-6375</a>
<p></p>
<p><a href="http://nysmesonet.org/" target="_blank">http://nysmesonet.org/</a><br>
</p>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>