[ncl-talk] Grid filling in NCL (beyond pisson_grid_fill)

Adam Phillips asphilli at ucar.edu
Thu Aug 6 10:20:17 MDT 2015


Hi Tabish,
Yes, see the ESMF regridding page here:
https://www.ncl.ucar.edu/Applications/ESMF.shtml
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.

The example you will want to look at is the fourth script shown in example
10.

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.

FInally, it is generally recommended to avoid having _FillValue=0. I would
switch that to a different value:
arr at _FillValue = 0      ; if _FillValue is not currently set, do this.
arr at _FillValue = -999     ; example on how to set _FIllValue
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.

If you have any further questions please respond to the ncl-talk email list.
Adam






On Thu, Aug 6, 2015 at 7:08 AM, Tabish Ansari <tabishumaransari at gmail.com>
wrote:

> Hi
>
> 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?
>
> Many thanks
>
> Tabish
>
> Tabish U Ansari
> IBM Research India Laboratory
> New Delhi
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150806/e56163e7/attachment.html 


More information about the ncl-talk mailing list