Fast interpolation of grid data

后端 未结 2 757
深忆病人
深忆病人 2020-12-05 02:54

I have a large 3d np.ndarray of data that represents a physical variable sampled over a volume in a regular grid fashion (as in the value in array[0,0,0] represents the valu

2条回答
  •  一整个雨季
    2020-12-05 03:49

    Great answer by Joe. Based on his suggestion, I created the regulargrid package (https://pypi.python.org/pypi/regulargrid/, source at https://github.com/JohannesBuchner/regulargrid)

    It provides support for n-dimensional Cartesian grids (as needed here) via the very fast scipy.ndimage.map_coordinates for arbitrary coordinate scales.

提交回复
热议问题