<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Meina,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The &quot;streaking&quot; that&#39;s occurring I think is because when you plot random data using NCL, it is trying to smooth the data by default, using a non-convex polygon that encloses all your data points.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Try drawing raster contours instead, by setting:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">  res@cnFillMode = &quot;RasterFill&quot;     ; draw raster contours instead of smoothed contours</div><div class="gmail_default"><br></div><div class="gmail_default">If you want to mask all areas except California, see example mask_8.ncl which is similar:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/mask.shtml#ex8">http://www.ncl.ucar.edu/Applications/mask.shtml#ex8</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">I think in your case you could set:</div><div class="gmail_default"><br></div><div class="gmail_default"><pre>  res@mpDataBaseVersion           = &quot;MediumRes&quot;
  res@mpFillAreaSpecifiers        = (/&quot;Land&quot;, &quot;California&quot;,&quot;Water&quot;/)
  res@mpSpecifiedFillColors       = (/&quot;white&quot;,&quot;transparent&quot;,&quot;white&quot;/)
  res@cnFillDrawOrder             = &quot;PreDraw&quot;  ; Make sure map fill happens
                                               ; last.</pre></div><div class="gmail_default">I will update the station_1 example to reflect the difference b/w smooth and raster fill.</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 9:00 PM, Meina Wang <span dir="ltr">&lt;<a href="mailto:mnawang@ucdavis.edu" target="_blank">mnawang@ucdavis.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="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><div class="gmail_default" style="font-size:13px">Dear NCL users:</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif" style="color:rgb(0,0,0)">I ran into a problem when trying to use the function </font><span style="font-family:Menlo;font-size:12px">gsn_csm_contour_map_c<wbr>e </span><span style="font-size:12px"><font face="arial, helvetica, sans-serif">to plot station data (with latitude and longitude).  I followed<a href="https://www.ncl.ucar.edu/Applications/Scripts/station_1.ncl" target="_blank"> this example </a>form NCL website and got the figure with &quot;noise&quot; over region where there is no input data point (over Nevada).  The plot is attached below, with black dots showing the data points, and color contour underneath is plotted from </font></span><span style="font-family:Menlo;font-size:12px">gsn_csm_contour_map_ce </span><font face="arial, helvetica, sans-serif"><span style="font-size:12px">fu<wbr>nction, so there is no data over Nevada, while the function still extrapolate values over there</span><span style="font-size:12px">. </span></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:12px;color:rgb(34,34,34)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:12px;color:rgb(34,34,34)"><font face="arial, helvetica, sans-serif">Below are the main res setting for plotting station data: </font></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><p style="margin:0px;font-size:12px;font-family:Menlo">  res@sfXArray                    = lons</p><p style="margin:0px;font-size:12px;font-family:Menlo">  res@sfYArray                    = lats</p></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><p style="margin:0px;font-size:12px;font-family:Menlo;min-height:14px"><br></p><p style="margin:0px;font-size:12px;font-family:Menlo">  plot=gsn_csm_contour_map_ce(wk<wbr>s,w,res1)</p><p style="margin:0px;font-size:12px;font-family:Menlo"><br></p></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,helvetica,sans-serif;font-size:12px">Has any one had this problem before?  Any thoughts or suggestion is much appreciated!  Thank you.</span><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,helvetica,sans-serif;font-size:12px"><br></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">​Best,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Meina</div></div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-8474300382929384854gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Meina Wang</font><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">PhD candidate in Atmospheric Science</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Department of Land, Air and Water Resources</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">University of California, Davis</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Davis, CA 95616</font></div></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>