SciPy interpolation of large matrix

后端 未结 2 2092
执念已碎
执念已碎 2021-01-07 02:40

I have a ndarray (Z) with some 500000 elements on a rectangular grid (X, Y).

Now I want to interpolate values at some 100 locations in x,y which are not necessarily

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-07 03:22

    As your data is on a grid, you can use RectBivariateSpline.

    To work with complex numbers, you can interpolate data.real and data.imag separately (the FITPACK routines IIRC don't handle complex data).

提交回复
热议问题