I have an undereay (z) with some 500,000 elements on the rectangular grid (X, Y).
Now I want to add value to some 100 places on x, y which are not required on the grid.
I have some code in matlab:
data = interposition 2 (x, y, z, x, y); However, when I try to use the same approach with scipy.interpolate, I get different errors depending on the method. For example if i type kind = 'Cubic' , if I specify kind = 'linear' and "overflowError: explanation of too many data points" then the archive 2D fails with MemoryEire I also tried to rbf and bisplev but they also L have So the question is: Is there any interpolation function which allows the interpolation of large matrix? Is there another solution to the problem? (Or do I have to code a function that suppresses the appropriate area around the number and then calls the interpol to 2D?)
In addition: How to do this with complex numbers?
As your data is on the grid, you can use.
To work with complex numbers, you do not control complex data of different types of FITPACK routines: data.real and data.imag is).
Comments
Post a Comment