有没有一种简单的方法(或可用的库)来读取“.map”文件扩展名文档中的数据,最好使用Python(或R语言)?在
我正在使用python(PCRaster)中的建模工具编写扩展名为.map的地图。然而有趣的是,我还没有找到一个python库来打开和研究这些文件。在
干杯
A similar question is made here, unfortunately unanswered
Here a .txt file is converted to .map, but can't see how to reverse this
Here is a list of uses cases from Wikipedia for the .map file format
因此,我还没有找到一种从PCRaster读取.map文件并能够直接打印它们的方法,但是我发现了将.map文件转换为Numpy数组的能力,该数组可以用于在其他地方进行绘图。在
为此,需要安装Numpy、Aguila和PCRaster。之后,可以从python脚本文件运行命令。在
从PCRaster maps到Numpy:
从Numpy到PCRaster
^{pr2}$以下是the PCRasterPython documentation page中的一个示例:
上面印着:
相关问题 更多 >
编程相关推荐