<div dir="ltr">Hi Jonathan,<div>If all you want is one positive and one negative contour, you can set:<br>res1@cnLevels =  (/-80.,80./) ; Diffs<br></div><div>The zero contour is not needed if all you want is two contours. </div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 7, 2021 at 11:45 PM Buzan, Jonathan <<a href="mailto:jbuzan@purdue.edu">jbuzan@purdue.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
Hi Adam,
<div><br>
</div>
<div>Yes, I have plotted the PI_Z_rmMean array. I have one set of plots that are the absolute standardized Geopotential heights. The second set are comparisons. I want to overlay the general pattern PI_Z_rmMean onto other plots, which is why I was
 creating another array with restricted values. To keep the plot from getting messy, I only want to plot 1 contour positive and 1 contour negative. </div>
<div><br>
</div>
<div>I think changing:</div>
<div> res1@cnLevels =  (/-160.,-80.,80.,160./) ; Diffs</div>
<div> res1@cnLevels =  (/-80.,0.,80./) ; Diffs</div>
<div><br>
</div>
<div>Would fix that? </div>
<div><br>
</div>
<div>Cheers,</div>
<div>-Jonathan</div>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Jul 8, 2021, at 12:29 AM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Hi Jonathan,
<div>I wouldn't worry about the "Contour from -160 to 160 by 106.7" label so much. I would think that the cnInfoLabelOn  resource would default to False when you are setting ExplicitLevels.  Otherwise, assuming you are setting gsnDraw/gsnFrame to False
 in each resource list (res and res1) I don't see anything wrong with what you are doing. Did you mean to plot the PI_Z_rmMean array as opposed to your PI_Z_rmMean_contrained array?</div>
<div>Adam</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jul 7, 2021 at 8:20 AM Buzan, Jonathan via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi NCL-Talk,
<div><br>
</div>
<div>I am attempting to overlay contours of standardized Geopotential height over changes in standardized Geopotential height. All I want to have in the overlay is a zone of positive and a zone of negative values. But I am having trouble understand
 how this is working. Especially since the contour intervals do not make sense (in the example below).</div>
<div><br>
</div>
<div>Cheers,</div>
<div>-Jonathan</div>
<div><br>
</div>
<div><br>
</div>
<div>Code snippets.</div>
<div>; generate positive and negative zone</div>
<div>PI_Z_rmMean_contrained = PI_Z_rmMean<br>
PI_Z_rmMean_contrained = where(PI_Z_rmMean.ge.80..or.PI_Z_rmMean.lt.-80.,PI_Z_rmMean,PI_Z_rmMean@_FillValue)<br>
<br>
     res1@cnLevelSelectionMode = "ExplicitLevels" <br>
     res1@cnLevels =  (/-160.,-80.,80.,160./) ; Diffs<br>
     res1@gsnContourNegLineDashPattern = 1       ; sets negative contours to dash pattern 1<br>
     res1@cnLineThicknessF = 1.<br>
<br>
</div>
<div>     plotPI = gsn_csm_contour(wks,PI_Z_rmMean(0,0,:,:),res1)<br>
<br>
</div>
<div>
<div>    plotLGMvsPI = gsn_csm_contour_map(wks,LGM100_vs_PI(0,0,:,:),res)</div>
</div>
<div>
<div>    overlay(plotLGMvsPI,plotPI)</div>
<div>    plotTemp(0) = plotLGMvsPI</div>
</div>
<div><span id="gmail-m_8545421452363602244cid:17a83119bc8a32374a91"><Screen Shot 2021-07-07 at 4.18.42 PM.png></span></div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<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>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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>