[ncl-talk] linint2 interpolation

Micah Sklut micahs2005 at gmail.com
Mon Jul 1 20:10:16 MDT 2019


Hi,

I am having trouble with the linint2 function.

Here is the code I am using:

u = f[:]->UGRD_P0_L103_GLL0(:,154:336,904:1212)
lat = f[0]->lat_0(154:336)
lon = f[0]->lon_0(904:1212)

newlat = fspan(51.5,6.,274)
newlon = fspan(226.,303.,463)
newu = linint2(lon,lat,u,False,newlon,newlat,0)

if I print u, i get:
(0,0)   1.502375
(0,1)   1.112375
(0,2)   0.8723755
(0,3)   0.8623755
...

if i print newu, i get:
  _FillValue :  1e+20
(0,0)   1.502375
(0,1)   1e+20
(0,2)   1e+20
(0,3)   0.8723755
(0,4)   1e+20
(0,5)   1e+20
(0,6)   0.8523754

I haven't been able to figure out why the fill value is being inserted in
the values that should be interpolated.

Thanks for your suggestions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190701/c96665da/attachment.html>


More information about the ncl-talk mailing list