I have several values that are defined on the same irregular grid (x, y, z)
that I want to interpolate onto a new grid (x1, y1, z1)
. i.e., I have <
You can try to use Pandas, as it provides high-performance data structures.
It is true that the interpolation method is a wrapper of the scipy interpolation BUT maybe with the improved structures you obtain better speed.
import pandas as pd;
wp = pd.Panel(randn(2, 5, 4));
wp.interpolate();
interpolate()
fills the NaN values in the Panel dataset using different methods. Hope it is faster than Scipy.
If it doesn't work, there is one way to improve the performance (instead of using a parallelized version of your code): use Cython and implement small routine in C to use inside your Python code. Here you have an example about this.