3D interpolation in Julia

You could try something like this:

using GridInterpolations

grid = RectangleGrid(0.:2.0, 0.:2.0, 0.:2.0)  	# rectangular grid
gridData = rand(3, 3, 3)
x = [0.1 0.2 0.3; 0. 1.5 2.0; 1.3 1.6 0.0; 0.2 0.5 1.0]
interpolate.(Ref(grid), Ref(gridData), eachrow(x))
2 Likes