擅长:python、mysql、java
<p>这是一种方法,你首先插值你的数据点到一个规则的网格?如果是的话,numpy/scipy有方法做到这一点。看看手册:</p>
<p><a href="https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.interpolate.griddata.html" rel="nofollow noreferrer">https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.interpolate.griddata.html</a></p>
<p><a href="https://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.interpolate.RegularGridInterpolator.html" rel="nofollow noreferrer">https://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.interpolate.RegularGridInterpolator.html</a></p>
<p>一个简单的例子解释了<a href="https://stackoverflow.com/questions/38749140/how-to-make-a-matrix-out-of-existing-xyz-data">here</a>(方法2)</p>