<div dir="ltr"><div dir="ltr"><div>A simple illustration. No missing values; then one missing value.</div><div><br></div><div>%> ncl raster_test.ncl</div><div><br></div><div>Run the script twice: <br></div><div><br></div><div>(1) default; res@cnRasterSmoothingOn = False   <br></div><div>(2) Turn on raster smoothing: res@cnRasterSmoothingOn = True   <br></div><div><br></div><div>HTH</div><div>D<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 27, 2018 at 10:46 AM Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.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">Hi Laura,<div>I don't believe you received an answer to your question. You asked whether setting cnFillMode = "RasterFill" will change the number of grid cells that are filled when there is missing data. The answer is yes. When you set cnFillMode = "RasterFill", every grid cell that is not set to _FillValue will be filled. When cnFillMode = "AreaFill" (the default), NCL will look at the values of the neighboring grid cells when shading the center grid cell. If not enough neighboring grid cells have data then NCL will not fill the center grid cell. Thus, if you want to color fill all valid grid cells you should set cnFillMode = "RasterFill".</div><div>Adam </div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 20, 2018 at 2:22 PM Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.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>Hello:</div><div><br></div><div>I am trying to plot the index level of the cloud base of shallow convection for one time step. In my netCDF file, there is no convection when the index level is equal to 55 (which is the total number of layers in my experiments).</div><div><br></div><div>First, I plot the incidence of shallow convection defined as equal to 1. when the cloud base is defined, and 0. otherwise (see kbcon_inc.pdf). Then, I plot the actual value of the index level after defining the grid-point as a missing value if the cloud base is equal to 55 (see kbcon.pdf). Missing values are plotted in gray.</div><div><br></div><div>When I compare the two plots, some grid-points are missing in kbcon.pdf compared to kbcon_inc.pdf, as for instance over the tropical Pacific Ocean. I know that the incidence filed is correct after comparing it against an other diagnostics. I do not understand the differences between the 2 plots and why some grid cell are missing. It it the impact of missing values. Is it the impact of setting <span style="font-variant-ligatures:no-common-ligatures;color:rgb(1,25,147);font-family:Courier;font-size:14px">res@cnFillMode </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(1,25,147);font-family:Courier;font-size:14px">= "RasterFill"?</span></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(1,25,147);font-family:Courier;font-size:14px"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(1,25,147);font-family:Courier;font-size:14px">If interested, the ncl script test.ncl is in 




<span></span>





<p class="m_-4314011946445943416m_6253446032795802276gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4314011946445943416m_6253446032795802276gmail-s1" style="font-variant-ligatures:no-common-ligatures">/gpfs/fs1/work/laura/MPASprojects2018/MPAS.cu_shallow.diagnostics/run3.40962.cu_gf/temp</span></p><p class="m_-4314011946445943416m_6253446032795802276gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4314011946445943416m_6253446032795802276gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_-4314011946445943416m_6253446032795802276gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4314011946445943416m_6253446032795802276gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_-4314011946445943416m_6253446032795802276gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4314011946445943416m_6253446032795802276gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p>


</span></div><div>


<br></div><div><br></div><div><br></div><br clear="all"><div><br></div>-- <br><div class="m_-4314011946445943416m_6253446032795802276gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-4314011946445943416gmail_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>
_______________________________________________<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>