LTU = np.genfromtxt('test.txt', delimiter=',')
coords = (12.5, 25.5, 137), (13.5, 26.5, 141), (14.5, 25.5, 144)
xyz = LTU[:, :3]
val = LTU[:, (3)]
del LTU
tree = cKDTree(xyz)
dist, ind = tree.query(coords, k=2)
d1, d2 = dist.T
v1, v2 = val[ind].T
v = d1 / (d1 + d2) * (v2 - v1) + v1
print(v)
Interpolating data from a look up table