Python – N-Dimensional linear Interpolation in Python (evaluate array using rationale index)

interpolationpython

Lets assume I have an N-dimensional array ar with ar.shape=(n1,...,nN). Is there a python module which allows to evaluate ar at an rationale index?

As an example, lets assume: ar.shape=(3,4,5). Then I'm looking for a function f that does this: result=f(ar,[2.3,1.5,3.4])

Best Answer

From the scipy docs: scipy.interpolate.griddata: Interpolate unstructured N-dimensional data.