Re: Question of natgrid

From: <debasish_at_nyahnyahspammersnyahnyah>
Date: Mon May 16 2011 - 06:44:31 MDT

"natgrid" interpolates from 2D random data to get values on a rectangular
output grid, therefore, if you like to interpolate to a grid with
lat(nlat) and lon(mlon), then the output dimension should be nlatxmlon.
But I believe you like to interpolate to arbitrarily specified coordinate
pairs instead of rectangular output grid. Please try "linint2_points"

Also check
http://www.ncl.ucar.edu/Document/Functions/interp.shtml
http://www.ncl.ucar.edu/Document/Functions/regrid.shtml

Thanks

Debasish

> Hi users,
> I have a question about natgrid interpolation. When I use natgrid to
> interpolate, I give 100 new coordinates to interpolate. However, I got
> 100X100 new value after interpolation. Could anyone please explain me why
> I
> get 10000 new values instead of 100 new values? My goal is interpolate 161
> value with lat and lon to 45320 new coordinates. When I try to use 45320
> new
> coordinates in the script, the program will crash because of huge
> calculation (45320x45320?). My new coordinates is irregularly spaced grid.
> Thus, I have tried dspnt2 for interpolation, but the result is not
> satisfying. Except dspnt2 and natgrid, could anyone please give me some
> advice to process the interpolation? Thank you.
>
> --
> Best regards
> Wei-Chih
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 16 06:45:10 2011

This archive was generated by hypermail 2.1.8 : Tue May 17 2011 - 15:11:27 MDT