<div dir="ltr">Hi Will,<div>The only thing I see is that you have res@cnFillOn = "True", instead of res@cnFillOn = True. Switching it to the latter results in the labelbar and map outlines being drawn. (You might also want to set res@gsnPaperOrientation = "portrait".) </div><div><br></div><div>So setting res@cnFillOn = "True" seems to turn on contour color fill, but it strangely goofs up some other map settings.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 30, 2018 at 3:19 AM Will Hobbs <<a href="mailto:will.hobbs@utas.edu.au">will.hobbs@utas.edu.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="#0563C1" vlink="#954F72">
<div class="m_2558922468252961859WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m currently running the latest version (6.5.0), and for some reason I’m not getting the expected map plot behaviour from the script below; in particular, I can’t get a label bar (even when I force res@lbLabelBarOn
= True), and I can’t get continental outlines (plot attached).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Can anyone see an issue in the script resources?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Many thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Will<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">begin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> yrst = 1970<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> yren = 2005<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> model = "ACCESS1-0"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> vNam = "tas"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> diri = "/Volumes/LaCie/CMIP5/"+model+"/"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> fili = vNam+"_Amon_"+model+"_<a href="http://historical_r1i1p1_185001-200512.nc" target="_blank">historical_r1i1p1_185001-200512.nc</a>"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> oType = "ps"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> diro = ""<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> filo = "tst"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">;*******************<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">;read data<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">;*******************<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> fi = addfile(diri+fili, "r")<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> tdum = cd_calendar(fi->time, -1)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> st = ind(tdum.eq.(yrst*100+1))<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> en = ind(tdum.eq.(yren*100+12))<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> dat = fi->$vNam$(st:en,:,:)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> out = dim_avg_n_Wrap(dat,0)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> delete(tdum)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">;*******************<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">;plot<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">;*******************<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> wks = gsn_open_wks(oType, diro+filo)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res = True<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@gsnMaximize = True<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@cnFillOn = "True"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@cnLinesOn = False<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@cnFillPalette = "BlueDarkRed18"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@cnInfoLabelOn = False<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@cnLineLabelsOn = False<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> res@lbLabelBarOn = True ;force label bar on<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> plot = gsn_csm_contour_map_ce(wks, out, res)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">end<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
</div>
<p style="font-size:10pt;line-height:10pt;font-family:Calibri,sans-serif"><br>
<br>
University of Tasmania Electronic Communications Policy (December, 2014). <br>
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained
in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
</p>
</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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>