[SciPy-User] interpolation grid/scatter
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,
On Wed, Feb 10, 2010 at 9:58 AM, fred <firstname.lastname@example.org> 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.
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User