RE: [ncl-talk] interpolation

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 19 Jul 2007 18:47:32 -0600 (MDT)

Hello

The documentation for all the spherical harmonic based regridding
functions clearly states that they do not allow missing values.

      load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

      nlat = 94
      lat = latGau(nlat, "lat", "latitude", "degrees_north")

      mlon = 192
      lon = lonGlobeF(mlon, "lon", "longitude", "degrees_east")

      newGrid = linint_Wrap(data&x, data&y, data, True, lon,lat,0)

Make sure that the ordering of "lat" [S->N] and the data
array agree.

On Thu, 19 Jul 2007, cluo_at_uci.edu wrote:

> Hi,
>
> It is same problem: "no interpolation performed on this array, since
> 2-dimensional input array contained missing values" by using f2fsh_Wrap
> function.
>
> Thanks much,
> Chao
>
>
> > Dear Chao,
> >
> > f2gsh_Wrap interpolates a scalar quantity from a fixed grid to a Gaussian
> > grid ( T42) i.e. 64X128.
> >
> > But you need the interpolation from fix grid data (1080,2160) to T62
> > (94,192) so you can use the "f2fsh_Wrap" for your purpose
> >
> > Details is given in
> >
> > http://www.ncl.ucar.edu/Document/Functions/Contributed/f2fsh_Wrap.shtml
> >
> > Thanks
> >
> > Debasish
> >
> > -----Original Message-----
> > From: ncl-talk-bounces_at_ucar.edu [mailto:ncl-talk-bounces_at_ucar.edu] On
> > Behalf
> > Of cluo_at_uci.edu
> > Sent: Thursday, July 19, 2007 2:38 PM
> > To: ncl-talk_at_ucar.edu
> > Subject: interpolation
> >
> > Dear NCL users:
> >
> > I am trying to interpolate the fix grid data (1080,2160) to T62 (94,192)
> > by f2gsh_Wrap like:
> >
> > newgrid =f2gsh_Wrap(data(:,:),(/94,192/),0)
> >
> > But no interpolation performed on this array, since 2-dimensional input
> > array contained missing values. Is there anyway to mask missing values
> > while perform interpolation? Any help are appreciated!
> >
> > Chao
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk_at_ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 19 2007 - 18:47:32 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 26 2007 - 16:42:26 MDT