barak.interp.trilinear_interp¶
- barak.interp.trilinear_interp(x, y, z, xref, yref, zref, vals)[source]¶
Trilinear interpolation.
Parameters : x, y, z : arrays of floats, shapes (M,), (N,), (O,)
Coordinate grid at which to interpolate vals.
xref, yref, zref : array of floats, shapes (I,), (J,), (K,)
Reference coordinate grid. The grid must be equally spaced along each direction, but the spacing can be different between directions.
vals : array of floats, shape (I, J, K)
Reference values at the reference grid positions.
Returns : output : array of floats, shape (M, N, O)