<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 (?) 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. 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"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>></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"><<a href="mailto:nbassill@albany.edu" target="_blank">nbassill@albany.edu</a>></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" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi All,<br>
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: <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 (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 = True </div>
<div>tres@tfPolyDrawOrder = "PostDraw"</div>
<div>tres@txFont = "helvetica-bold"</div>
<div>tres@txFontHeightF = 0.013</div>
<div>;tres@txFontThicknessF = 3</div>
<div>do n=0,size(0)-1,1</div>
<div> if sitewinds(n).gt.25</div>
<div> tres@txFontOpacityF = 1-(sitewindtime(n)/35)</div>
<div> stationtext = gsn_add_text(wks,plot,round(si<wbr>tewinds(n),3),sitewindlons(n),<wbr>sitewindlats(n),tres)</div>
<div> end if</div>
<div>end do</div>
<div><br>
</div>
....
<p></p>
<p><br>
</p>
<p></p>
<div>;;;; vector stuff</div>
<div><br>
</div>
<div> res_vc = res</div>
<div><br>
</div>
<div> res_vc@vcGlyphStyle = "LineArrow"</div>
<div> res_vc@vcLineArrowThicknessF = 5</div>
<div> res_vc@vcMinDistanceF = 0.01</div>
<div> res_vc@vcRefLengthF = 0.03</div>
<div> res_vc@vcRefAnnoOn = True</div>
<div> res_vc@vcRefMagnitudeF = 25 </div>
<div> res_vc@vcRefAnnoString1 = "25 mph"</div>
<div> res_vc@vcRefAnnoSide = "Top"</div>
<div> res_vc@vcRefAnnoString2On = False</div>
<div> res_vc@vcRefAnnoPerimOn = False</div>
<div> res_vc@vcRefAnnoOrthogonalPosF = -0.76 ; more positive moves up</div>
<div> res_vc@vcRefAnnoParallelPosF = 0.94 ; more positive moves to right</div>
<div> res_vc@vcRefAnnoBackgroundColo<wbr>r = "SkyBlue"</div>
<div> res_vc@vcVectorDrawOrder = "PreDraw"</div>
<div></div>
<div> res_vc@vcMinAnnoFontHeightF = .012</div>
<div> res_vc@vcGlyphOpacityF = 1 </div>
<div> res_vc@txFontOpacityF = 1</div>
<div> vector = gsn_csm_vector(wks,udata,vdata<wbr>,res_vc)</div>
<div><br>
</div>
<div> 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 = True </div>
<div>tres@txFontHeightF = 0.01 </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. </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,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",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 & 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="+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>