<div dir="ltr">Hi Archana,<div>Thanks for providing your script and data file (offline). The allocation error is a common one that is referenced in the FAQs here:</div><div><a href="http://www.ncl.ucar.edu/FAQ/#err_msgs_012" target="_blank">http://www.ncl.ucar.edu/FAQ/#err_msgs_012</a><br></div><div><br></div><div>In short: You are creating a graphic that is bigger than what your current allocation limit allows. You can easily increase that limit. However, in this case, I think the error message is a symptom of a larger issue. You have a very high resolution grid. Whenever you have such high resolution data and you wish to color fill you will want to set cnFillMode = &quot;RasterFill&quot; to speed things up. If you like the smoothed look provided by cnFillMode = &quot;AreaFill&quot; (the default) you can set cnRasterSmoothingOn = True. I think the allocation issue is being caused by the numerous noisy contour lines that NCL is trying to draw. Turning those off (via cnLinesOn= False) and turning on RasterFill resulted in the plot being drawn rather quickly with a size of 0.5MB. </div><div><br></div><div>Here&#39;s the resource list I used:</div><div><div>res = True</div><div>res@gsnDraw             = False           ; don&#39;t draw</div><div>res@gsnFrame            = False           ; don&#39;t advance frame</div><div>res@cnFillOn            = True            ; turn on color</div><div>res@cnLinesOn           = False           ; turn off contour lines</div><div>res@cnLineLabelsOn      = False           ; turn off contour line labels</div><div><br></div><div> res@cnLevelSelectionMode =  &quot;ExplicitLevels&quot;   </div><div> res@cnLevels = (/0,2000,4000,6000,8000,10000,12000,14000/)</div><div> res@gsnAddCyclic         = False </div><div> res@mpMinLatF            = latS</div><div>res@mpMaxLatF            = latN</div><div>res@mpMinLonF            = lonL</div><div> res@mpMaxLonF            = lonR</div><div> res@mpCenterLonF = (lonL+lonR)/2.</div><div>res@lbLabelBarOn        = False           ; turn off individual cb&#39;s</div><div>res@mpFillOn            = False</div><div>   res@cnFillMode = &quot;RasterFill&quot;</div><div>   res@cnRasterSmoothingOn = True</div></div><div><br></div><div>Hope that helps. If you have any further questions please respond to the ncl-talk email list.<br></div><div>Adam</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 20, 2015 at 12:22 PM, Archana Dayalu <span dir="ltr">&lt;<a href="mailto:adayalu@seas.harvard.edu" target="_blank">adayalu@seas.harvard.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Adam,<div><br><div>Ok, I tried the filling ... and am now trying the comparison plot panels using the examples on the website. Specifically, I adapted the <a href="http://www.ncl.ucar.edu/Applications/Scripts/grid_fill_1.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/grid_fill_1.ncl</a> script for my purposes, but the problem I get a number of errors in the plotting end of things (not the filling):</div><div><div>fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size 300000000</div><div>fatal:ContourPlotDraw: draw error</div><div>fatal:ContourPlotDraw: draw error</div><div>fatal:PlotManagerDraw: error in plot draw</div><div>fatal:_NhlPlotManagerDraw: Draw error</div></div><div><br></div><div>I am using ncl version 6.2.1. I tried another version of the plot based off of <a href="http://www.ncl.ucar.edu/Applications/Scripts/grid_fill_2.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/grid_fill_2.ncl</a> and it plots individual points rather than contour fills. </div><div><br></div><div>I have a sample file and the script I am using ... let me know if you need me to send that to you.</div><div><br></div><div>Thank you for any help!</div><div>Archana</div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 5:06 PM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Archana,<div>I do not believe there is a set method to help you come up with nscan and epsx. Just trial and error. Yes, you will want to set is_cyclic to False if your data is not global.</div><div><br></div><div>poisson_grid_fill is a good choice for interpolation as it excels at filling in data both within data boundaries and along the edges. I believe it is the favored interpolation/extrapolation routine around here when infilling is required. </div><div><br></div><div>Hope that helps!</div><div>Adam  </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Nov 18, 2015 at 6:08 PM, Archana Dayalu <span dir="ltr">&lt;<a href="mailto:adayalu@seas.harvard.edu" target="_blank">adayalu@seas.harvard.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<div>I am fairly new to methods of interpolation, and am considering using poisson_grid_fill to interpolate missing values after I quality filtered some 500m MODIS reflectance data (MOD09A1 product). Is there a method to determine the optimal values for nscan and epsx? In addition, I am not working with a global data set, so that would indicate is.cyclic = FALSE if I understood that argument correctly?</div><div>Thanks for any help.</div><div>Regards,</div><div>Archana<br clear="all"><div><br></div><div> </div>
</div></div>
<br></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>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><span><font color="#888888"><div><br></div>-- <br><div><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"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</font></span></font></span></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>____________________________________________________<br><b><font size="2"><span style="color:rgb(0,0,0)">Archana Dayalu</span></font></b><br><font style="color:rgb(0,0,0)" size="2">Graduate Student<br></font><font color="#888888"><font size="2"><span style="color:rgb(0,0,0)">Dept. of Earth and Planetary Sciences</span><br style="color:rgb(0,0,0)"><span style="color:rgb(0,0,0)">Harvard University</span><br style="color:rgb(0,0,0)"><span style="color:rgb(0,0,0)">24 Oxford Street #402</span><br style="color:rgb(0,0,0)"><span style="color:rgb(0,0,0)">Cambridge, MA 02138</span><br style="color:rgb(0,0,0)"><a style="color:rgb(0,0,153)" value="+16174966361">(617) 384-8206</a></font><br>

</font> </div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><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"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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></div>