<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Nick,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is definitely a bug. I'll provide a work-around a little later in this email.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Meanwhile, as a favor, could you submit an issue using NCL's github issue tracker? We're moving from JIRA to github for issue tracking, and would like to get our users on this as well.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To report the issue:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">[1] Go to the NCL github page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="https://github.com/NCAR/ncl">https://github.com/NCAR/ncl</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">[2] Click on the "Issues" tab near the top of the page<br></div><div class="gmail_default"><br></div><div class="gmail_default">[3] Click on the green "New Issue" button<br></div><div class="gmail_default"><br></div><div class="gmail_default">[4] Fill in the title and description. The title should be descriptive, but as brief as possible. What you had for the subject of this email would work. </div><div class="gmail_default"><br></div><div class="gmail_default">When filling out the description, you can use the attached sample script which illustrates the problem. Unfortunately, github doesn't let you select files with a ".ncl", but if you rename it to "xxx.ncl.txt" then you can attach it to the issue.</div><div class="gmail_default"><br></div><div class="gmail_default">Or, you can copy the script, and then in the github description box, if you paste the code surrounded by these two lines:</div><div class="gmail_default"><br></div><div class="gmail_default">```ncl</div><div class="gmail_default"><font face="monospace, monospace">[....paste NCL code here...]</font></div><div class="gmail_default">```</div><div class="gmail_default"><br></div><div class="gmail_default">Then it will recognize this as an NCL script and will highlight bits of the code for you! You can click on the "preview" tab to see what it looks like.</div><div class="gmail_default"><br></div><div class="gmail_default">[5] Once the description is done, click on the "Submit new issue" button to submit it.</div><div class="gmail_default"><br></div><div class="gmail_default">Back to the problem at hand. There are a couple of work-arounds. </div><div class="gmail_default"><br></div><div class="gmail_default"><b>Work-around #1</b></div><div class="gmail_default"><br></div><div class="gmail_default">One is to fix the $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl script yourself. Edit this line:<br><br> gsres_tmp = get_res_eq(res2,"gs") ; Get resource list for lines. Remove gsFill <br><br></div><div class="gmail_default">and change "res2" to "res":</div><div class="gmail_default"><br></div><div class="gmail_default"> gsres_tmp = get_res_eq(res,"gs") ; Get resource list for lines. Remove gsFill <br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><b>Work-around #2</b></div><br class="gmail-Apple-interchange-newline"></div><div class="gmail_default" style="font-size:small">If you don't want to edit and change $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl directly, then I created a separate "gsn_table_fix.ncl" script for you, that has the new gsn_table with the one line fix. You can include this fixed script in your current NCL script with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load "./gsn_table_fix.ncl"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Let me know if this doesn't work for you.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 19, 2018 at 12:14 PM Bassill, Nicholas <<a href="mailto:nbassill@albany.edu">nbassill@albany.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-3970535654630426716divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi All,</p>
<p style="margin-top:0;margin-bottom:0"> I wanted to share a possible bug - although it's also possible I'm doing something wrong that I can't figure out. Long story short, I have a crontab'd, daily script that creates plots like this: <a href="http://operations.nysmesonet.org/~hudson2016/forecasts/2018103100SOMregressionforecast.png" class="m_-3970535654630426716OWAAutoLink" id="m_-3970535654630426716LPlnk75243" target="_blank">http://operations.nysmesonet.org/~hudson2016/forecasts/2018103100SOMregressionforecast.png</a> .
That plot was created with NCL 6.3. It's a graph, with a table added to it below, with <span>"res@gsLineThicknessF = 6" for the table line thickness. I relocated this script to a different computer that uses NCL 6.5. That plot looks like: <a href="http://operations.nysmesonet.org/~hudson2016/forecasts/2018110100SOMregressionforecast.png" class="m_-3970535654630426716OWAAutoLink" id="m_-3970535654630426716LPlnk290253" target="_blank">http://operations.nysmesonet.org/~hudson2016/forecasts/2018110100SOMregressionforecast.png</a> -
notice the table line thicknesses are much thinner.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span> I assumed I changed something in the move (and forgot), but recently I started making a new plot, also with a table attached to the bottom, using NCL 6.5, and sure enough, I can't change the line thickness. </span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Even though I know most of these resources aren't relevant, these are the resources I've rotated through trying:<br>
<br>
</span></p>
<div> tableres@gsLineThicknessF = 10.0</div>
<div> tableres@gsFillLineThicknessF = 25.0</div>
<div> tableres@gsEdgesOn = True</div>
<div> tableres@gsEdgeThicknessF = 20.0</div>
<p></p>
<p style="margin-top:0;margin-bottom:0"> .... all with no luck. I'm wondering if anyone else has experienced this issue, or has any suggestions?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">My script is very lengthy, and the underlying data complex, so I'm not sharing it here, but the table portion looks like:<br>
<br>
</p>
<div>tableres = True</div>
<div> ncr = (/11,4/) ; 4 rows, 3 columns</div>
<div> tableres@txFontHeightF = .012 ; fontvalues ; Font height</div>
<div> tableres@gsLineThicknessF = 10.0</div>
<div> tableres@gsFillLineThicknessF = 25.0</div>
<div> tableres@gsEdgesOn = True</div>
<div> tableres@gsEdgeThicknessF = 20.0</div>
<div><br>
</div>
<div> tableres@txJust = "CenterCenter" </div>
<div>ncr = (/4,11/)</div>
<div>tableres@txFont = "helvetica-bold"</div>
<div></div>
<div> text := round(transpose(forecastoutages),3)</div>
<div> text := where(text.lt.0,0,text)+""</div>
<div><br>
</div>
<div> y := (/0.02,0.12/) ; Start and end X</div>
<div> x := (/0.2,0.8/) ; Start and end Y</div>
<div><br>
</div>
<div> tableres@txFontHeightF = .011 ; fontvalues ; Font height</div>
<div> tableres@txJust = "CenterCenter"</div>
<div></div>
<div><br>
</div>
<div> colors := 10+round(transpose(forecastoutages),3)</div>
<div> colors := where(colors.gt.220,220,colors)</div>
<div> colors := where(colors.lt.10,10,colors)</div>
<div><br>
</div>
<div> tableres@gsFillColor := colors </div>
<div></div>
<div><br>
</div>
<div> gsn_table(wks,ncr,x,y,text,tableres)</div>
<div><br>
</div>
<div>ncr = (/4,1/)</div>
<div>x = (/.04,.2/)</div>
<div>res@gsFillColor := "white"</div>
<div>gsn_table(wks,ncr,x,y,(/"10% Worst Case:","Best Forecast~N~:","90% Worst Case:","99% Worst Case:"/),tableres)</div>
<div><br>
</div>
<div>ncr = (/1,11/)</div>
<div>x = (/0.2,0.8/)</div>
<div>y = (/0.12,0.145/)</div>
<div><br>
</div>
<div> gsn_table(wks,ncr,x,y,dayarray,tableres)</div>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="m_-3970535654630426716Signature">
<div id="m_-3970535654630426716divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div id="m_-3970535654630426716divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif,Helvetica,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, Center Of Excellence (Prior: NYS 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</div>
<div id="m_-3970535654630426716divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
NYSM Products: <a href="http://operations.nysmesonet.org/~nbassill/" class="m_-3970535654630426716OWAAutoLink" id="m_-3970535654630426716LPNoLP" target="_blank">http://operations.nysmesonet.org/~nbassill/</a></div>
</div>
</div>
</div>
</div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>