- 积分
- 112
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-9-7
- 最后登录
- 1970-1-1

|
发表于 2023-11-29 16:37:16
|
显示全部楼层
您好,我按上面这个脚本运行,会报这样的错,初次使用这个软件,不知道怎么提取聚类后的数据,想问下这如何解决呀?
infn = 'E:/code-keyan/data/hysplit-output/out-data-meteo/test/jl4.shp'
layer = shaperead(infn)
for ii in range(layer.shapenum()):
shape = layer.shapes()[ii]
line = layer.cellvalue('Cluster', ii)
for j in range(shape.getPointNum()):
p = shape.getPoints()[j]
lon = p.X
lat = p.Y
press = p.Z
line = line + ',%.2f,%.2f,%.2f' % (lon,lat,press)
print line
print 'Finished...'
Traceback (most recent call last):
File "<iostream>", line 2, in <module>
NameError: name 'shaperead' is not defined
|
|