- 积分
- 4884
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-1-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
运行王老师的程序:根据hysplit计算出的轨迹文件绘制轨迹图遇到的问题
f = addfile_hytraj('C:/hysplit4/working/tdump')
tlayer = f.trajlayer()
stlayer = f.trajsplayer()
axesm(position=[0.1,0.4,0.8,0.6])
mlayer = shaperead('D:/MeteoInfo/map/country.shp')
geoshow(mlayer, edgecolor=(0,0,255), facecolor=(230,230,230))
geoshow(tlayer)
ss = makesymbolspec('point', {'marker':'S'})
geoshow(stlayer, symbolspec=ss)
xlim(0, 180)
ylim(0, 90)
title('MeteoInfoLab script demo - Trajectory')
运行结果出错
Traceback (most recent call last):
File "<iostream>", line 2, in <module>
File "D:\MeteoInfo\pylib\mipylib\dataset\dimdatafile.py", line 215, in trajlayer
return MILayer(self.dataset.getDataInfo().createTrajLineLayer())
AttributeError: 'org.meteoinfo.data.meteodata.hysplit.HYSPLITTrajDa' object has no attribute 'createTrajLineLayer'
第二行和第三行读取轨迹图层信息出错,请问王老师是哪个地方出错了啊
工作窗口输入 f.trajlayer有信息输出,但只要加上括号f.trajlayer()就出错
|
|