How can I solve this 3D regular grid interpolation problem
问题 I am a new python user. I have a h5 file, which is a snapshot of gravitational potential at a fixed redshift. I have read the h5 file in python and now I want to write a code which will give the value of the gravitational potential for given values of (x, y, z) by using trilinear interpolation. Can anyone of you please help me to do that? For your kind consideration, the code is given below: In [1]: import numpy as np In [2]: import h5py In [3]: from scipy.interpolate import