如果我有一个带有Lat、Lon和Value字段的CSV数据集,使用Python生成栅格地图的最佳方法是什么?栅格Z字段可以是该表中的任何列。
L5 L6 L7 L8 L9 L10 L11 L12 L13 L14 LAT LON
3.571732 1.338448 0 9.96921E+36 -3.482845 -1.42944 133.229919 141.246002 67.685631 5.059844 24.335797 -95.088764
3.571732 1.338448 0 9.96921E+36 -3.420345 -1.42944 132.749512 140.641464 67.318848 5.105563 24.335107 -95.060013
3.571732 1.338448 0 9.96921E+36 -3.420345 -1.42944 132.230164 140.047211 67.318848 5.063346 24.334408 -95.031263
3.571732 1.338448 0 9.96921E+36 -3.420345 -1.42944 132.230164 139.463104 67.318848 5.063346 24.333701 -95.002512
3.509232 1.369698 0 9.96921E+36 -3.357845 -1.42944 131.702133 137.82196 66.940475 5.021552 24.332986 -94.973763
3.509232 1.369698 0 9.96921E+36 -3.357845 -1.49194 131.702133 137.26651 66.043732 5.021552 24.332263 -94.945013
3.509232 1.369698 0 9.96921E+36 -3.357845 -1.49194 131.165268 136.72081 66.043732 4.980192 24.331531 -94.916265
3.509232 1.338448 0 9.96921E+36 -3.357845 -1.49194 131.165268 136.184738 66.043732 4.980192 24.330792 -94.887516
记住,这些是numpy数组。
Basemap
这个用于地理数据的 matplotlib 工具包?例如,可以参考 https://jakevdp.github.io/PythonDataScienceHandbook/04.13-geographic-data-with-basemap.html。 - xdze2