Barak 0.3.2 documentation

barak.interp.trilinear_interp

«  barak.interp.splice   ::   Contents   ::   barak.io.loadobj  »

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)

«  barak.interp.splice   ::   Contents   ::   barak.io.loadobj  »