[SciPy-user] How Do I Interpolate a Grid of Data
Joseph Smidt
josephsmidt at gmail.com
Sun May 3 19:10:47 EDT 2009
Hello,
I am new to python and scipy. Lets say I have a file called
grid.txt that looks like this
( x, y, f(x,y)):
1 1 0.6
3 1 0.8
7 1 2.3
1 3 0.3
3 3 1.5
7 3 1.3
1 7 2.6
3 7 2.8
7 7 1.3
How would I, using scipy, interpolate this so I get a value at any point on
a new grid [0,10]x[0,10]? IE, I would like to take the above
information and create some NXN array f so that I could say print
f[1][2] or print f[9][10] say, and it would give me the interpolated
value at that point. Thanks.
Joseph Smidt
--
------------------------------------------------------------------------
Joseph Smidt <josephsmidt at gmail.com>
Physics and Astronomy
4129 Frederick Reines Hall
Irvine, CA 92697-4575
Office: 949-824-3269
More information about the SciPy-User
mailing list