我在这里有 .dem 文件:http: //ddfe.curtin.edu.au/models/ERTM2160/data/dem/
在 python pyvista 我有例如:
import pyvista as pv
file = 'pick_one_from_the_link_above.dem'
mesh = pv.read(file)
输出说:
mesh.dimensions
[-2147483648,-2147483648,1]
除了减号之外,它是 mesh.n_points 的平方根
尝试使用 mesh.points 绘制或提取点时,我收到一条消息,即不允许使用负尺寸。尝试以下方法:
mesh.dimensions = [int(numpy.sqrt(mesh.n_points)),int(numpy.sqrt(mesh.n_points)),1]
导致错误消息:
溢出错误:SetDimensions 参数 1:值超出 int 范围
有人可以告诉我我做错了什么,我不知道吗?或者可能知道如何读取这些文件以制作曲面图?
非常感谢 :)