<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi Tabish,<br></div>Yes, see the ESMF regridding page here:<br><a href="https://www.ncl.ucar.edu/Applications/ESMF.shtml">https://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br></div>I would strongly suggest reading the documentation at the top, especially the section titled "More detailed description of ESMF regridding" with a particular focus on section 4.<br><br></div>The example you will want to look at is the fourth script shown in example 10.<br><br></div>If your data does have 2D latitudes/longitudes, take a look at any of the other examples on that page that work with curvilnear grids to see how to properly set things up.<br><br></div>FInally, it is generally recommended to avoid having _FillValue=0. I would switch that to a different value:<br></div><div>arr@_FillValue = 0 ; if _FillValue is not currently set, do this.<br></div>arr@_FillValue = -999 ; example on how to set _FIllValue<br></div>Note that by setting the above line all the 0's in the array will be switched to -999. Make sure you look at your data before and after switching the _FillValue to verify that all is well.<br><br></div>If you have any further questions please respond to the ncl-talk email list.<br></div>Adam<br><div><div><br><br><br><div><div><br><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 7:08 AM, Tabish Ansari <span dir="ltr"><<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.com</a>></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:trebuchet ms,sans-serif">Hi<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I have a 2d data with lots of missing values (currently stored with zeros). I wish to interpolate the data with a nearest neighbour interpolation. How to go about it in ncl?<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Many thanks<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br><br clear="all"></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div><font color="#666666" face="trebuchet ms, sans-serif" size="2">Tabish U Ansari<br>IBM Research India Laboratory<br></font></div><div><font color="#666666" face="trebuchet ms, sans-serif" size="2">New Delhi<br></font></div></div></div></div></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>