[SciPy-User] interpolation grid/scatter

Joe Kington jkington@wisc....
Wed Feb 10 10:03:50 CST 2010


If I'm understanding you correctly,
scipy.ndimage.interpolation.map_coordinates does exactly what you want.

 It takes a list of arbirtary (i.e. not integer) indexes and interpolates a
grid at those coordinates.

Hope that helps,
-Joe

On Wed, Feb 10, 2010 at 9:58 AM, fred <fredmfp@gmail.com> wrote:

> Hi all,
>
> Say I have data grid like this:
>
> xmin, xmax, dx = 0, 5, 1
> ymin, ymax, dy = 0, 4, 1
>
> data.shape : (6,5)
>
> I would like to get scalar value at points that are _not_ on the grid
> nodes, say at x=1.213, y=3.24.
>
> How could I do that?
>
> Is there a scipy function to do what I want?
>
> PS : I have about 100 points on which I want the scalar value
>
> PS2 : my array can be 3D array.
>
> TIA.
>
> Cheers,
>
> --
> Fred
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100210/0d5a0f5c/attachment.html 


More information about the SciPy-User mailing list