<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 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="OWAAutoLink" id="LPlnk485893" previewremoved="true">http://www.atmos.albany.edu/facstaff/nbassill/live/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(sitewinds(n),3),sitewindlons(n),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@vcRefAnnoBackgroundColor = "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,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="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, "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>
(518) 442-6375
<p></p>
<p>http://nysmesonet.org/<br>
</p>
</div>
</div>
</div>
</body>
</html>