<div dir="ltr"><div><div><div><div><div><div>Hi Patrick,<br></div>By masking and array you are creating regions with missing data. The default fill mode (AreaFill) will do its best at color filling the input data array, but you will likely not see every grid cell that is significant as AreaFill needs most of the surrounding grid cells to have data to fill. <br><br></div>To see what I mean, try setting: cnFIllMode = &quot;RasterFill&quot;, which tells NCL to color each individual (significant) grid cell. When plotting data with some missing areas, RasterFill usually results in more areas being plotted. The downside to RasterFill is the blocky nature of these types of plots. <br></div><div><br>Your other idea, to overlay the full contour field on the color filled sig array, would work and is relatively easy to try:<br></div><br></div><div>res@gsnDraw = False     ; do not draw the plot<br></div><div>res@gsnFrame = False    ; do not advance the frame<br></div><div>res@cnFillOn = True<br></div><div>res@cnLinesOn = False<br></div><div>res@cnLineLabelsOn = False<br></div><div>res@cnFillMode = &quot;RasterFill&quot;    ; optional<br></div>plot = gsn_csm_contour_map(wks,sig,res)<br></div>res@cnFillOn = False<br><div>res@cnLinesOn = True<br></div>res@cnLineLabelsOn = True<br></div>plot2 = gsn_csm_contour(wks,X,res)<br><div><div><div>overlay(plot,plot2)<br></div><div>draw(plot)<br></div><div>frame(wks)<br></div><div><div><br>Another option: You can overlay a AreaFill plot on the same field 
RasterFilled; I&#39;ve done this with mixed success aesthetically. The procedure is similar to what is done above.<br><br></div><div>Many people overlay a stippled field to show significance. For an example of this see my response to Ipshita from last week:<br><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2015-July/003380.html">http://mailman.ucar.edu/pipermail/ncl-talk/2015-July/003380.html</a><br><br></div><div>Hope the above helps. If not, or if you have further questions please respond to ncl-talk.<br></div><div>Adam <br></div><div><br></div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 9:10 PM, Patrick Kelly <span dir="ltr">&lt;<a href="mailto:pkelly@rsmas.miami.edu" target="_blank">pkelly@rsmas.miami.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div><div>Hello NCL community, </div><div><br></div><div>I am fairly new to working with graphics in NCL. </div><div>I am trying to mask global data (for a significance threshold).</div><div><br></div><div>I am using the “mask” feature to accomplish this and contouring the results with “gsn_csm_contour_map”</div><div>This works fairly well, but as you can seem the masking feature create some jagged artifacts at the boundary which results in breaks in the thick black contour lines.</div><div><br></div><div>Is there a better to somehow smooth these edges, or could I perhaps overlay another set of contour lines (unfilled) to at least get continuous lines?</div><div>I’ve tried the “smth9_Wrap” function without much success.</div><div><br></div><div>Thanks, </div><div>Patrick</div><div><br></div><div><br></div><div><br></div><div>relevant lines of code look like this:</div><div><br></div><div><br></div><div><div style="margin:0px;font-size:21px;font-family:Menlo">sig = mask(X,abs(X) .lt. 0.37,False) ;; only show values whose abs() gt 0.37</div><div style="margin:0px;font-size:21px;font-family:Menlo">plot = gsn_csm_contour_map(wks,sig,res)</div></div><div style="margin:0px;font-size:21px;font-family:Menlo"><br></div><div style="margin:0px;font-size:21px;font-family:Menlo"><br></div><div><br></div><div><br></div><div><br></div><img src="cid:D4B7DCAB-30BA-488E-ACDA-B38B027F1CAD" height="102" width="111"></div><div><br><br>Patrick<div><div><br></div><div>Sent from my iPhone </div></div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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>
<br></blockquote></div><br><br clear="all"><br>-- <br><div 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>
</div>