<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Adam,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">I think changing:</div>
<div class=""> res1@cnLevels =  (/-160.,-80.,80.,160./) ; Diffs</div>
<div class=""> res1@cnLevels =  (/-80.,0.,80./) ; Diffs</div>
<div class=""><br class="">
</div>
<div class="">Would fix that? </div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jul 8, 2021, at 12:29 AM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Jonathan,
<div class="">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 class="">Adam</div>
</div>
<br class="">
<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" class="">ncl-talk@mailman.ucar.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">Hi NCL-Talk,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Code snippets.</div>
<div class="">; generate positive and negative zone</div>
<div class="">PI_Z_rmMean_contrained = PI_Z_rmMean<br class="">
PI_Z_rmMean_contrained = where(PI_Z_rmMean.ge.80..or.PI_Z_rmMean.lt.-80.,PI_Z_rmMean,PI_Z_rmMean@_FillValue)<br class="">
<br class="">
     res1@cnLevelSelectionMode = "ExplicitLevels" <br class="">
     res1@cnLevels =  (/-160.,-80.,80.,160./) ; Diffs<br class="">
     res1@gsnContourNegLineDashPattern = 1       ; sets negative contours to dash pattern 1<br class="">
     res1@cnLineThicknessF = 1.<br class="">
<br class="">
</div>
<div class="">     plotPI = gsn_csm_contour(wks,PI_Z_rmMean(0,0,:,:),res1)<br class="">
<br class="">
</div>
<div class="">
<div class="">    plotLGMvsPI = gsn_csm_contour_map(wks,LGM100_vs_PI(0,0,:,:),res)</div>
</div>
<div class="">
<div class="">    overlay(plotLGMvsPI,plotPI)</div>
<div class="">    plotTemp(0) = plotLGMvsPI</div>
</div>
<div class=""><span id="cid:17a83119bc8a32374a91"><Screen Shot 2021-07-07 at 4.18.42 PM.png></span></div>
</div>
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class="">
</font></span></div>
<span class=""><font color="#888888" class="">Associate Scientist,  </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class="">
</font></span></div>
</div>
<div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a>  
</font></span><span class=""><font color="#888888" class="">303-497-1726 </font></span></div>
<span class=""><font color="#888888" class=""></font></span>
<div class="">
<div class=""><span class=""><font color="#888888" class=""><br class="">
</font></span>
<div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>