[ad_1]
I am searching the equivalent Matlab command
Vq = interp3(X,Y,Z,V,Xq,Yq,Zq)
in Python. In Matlab I can use the method 'spline' interpolation, which I can not find in python for 3D data. There exists scipy.interpolate.griddata, but it doesn't have the option spline for 3D data.
The data I want to interpolate is a 3D matrix (51x51x51), which is regularly distributed on a 3D grid.
scipy.interpolate.Rbf may be the option, but I don't get it working:
xi = yi = zi = np.linspace(1, 132651, 132651)
interp = scipy.interpolate.Rbf(xi, yi, zi, data, function='cubic')
leads to a memory error.
[ad_2]
لینک منبع