[SciPy-User] Interpolation from a regular grid to a not regular one

Domenico Nappo domenico.nappo at gmail.com
Fri Jun 24 11:02:03 EDT 2011


Hi there,
hope you can help me.

I'm new to SciPy and I'm not aware of all its nice features.
I need some indications about how to complete the following task...just
giving me some suggestions about which package/methods to use could be
enough.

I have three 2d numpy arrays representing the followings:

lats, longs = latitudes and longitudes of a regular grid (shape is
(161,201))
vals = corresponding values (shape = (161,201))

I've got two more 2d numpy arrays which are latitudes and longitudes of a
non regular grid (shapes are (1900,2400))

Now, I've got to produce the grid of values for the non regular grid, using
interpolation (probably nearest neighbour).
I've come out with something using griddata from the matplotlib.mlab module
but I'm not sure it's the right way and I don't know how to test the
interpolated results...

Many thanks in advance.

-- 
dome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110624/88070651/attachment.html>


More information about the SciPy-User mailing list