scipy學習

1、Delaunay三角剖分

from scipy.spatial.qhull import Delaunay
from scipy.interpolate import LinearNDInterpolator, griddata

tri = Delaunay(np.asarray([orig_lon.ravel(), orig_lat.ravel()]).T)
interpolator = LinearNDInterpolator(tri, orig_val.ravel())

2、scipy.interpolate.LinearNDInterpolator線性插值

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.LinearNDInterpolator.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章