Closed cdagnino closed 4 years ago
@cdagnino : if you use the code from master there is recent support for multilinear interpolation on non regular grid. See README file and functions eval_linear
and interp
.
One constraint of the library is that we try to keep implementation compatible with numba's jitted environment. This is why no object interface is provided yet. Note that if you absolutely need a function, you can still do f = lambda x: eval_linear(grid, values, x)
or f = lambda u: interp(x,y,u)
. It might even work in an njit
function since numba now supports anonymous functions.
Irregular grid are now supported
With
LinearNDInterpolation
it is possible to get an interpolation function on an irregular grid. For exampleIs there such functionality in
interpolation.py
, whether with one or multiple dimensions?I saw that
interpolation.interp
handles non regular points, but the example only shows it returning points, not a function: