- 积分
- 319
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-7-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
代码为:from pylab import *
if __name__ == '__main__':#主函数
environ_value = dict(os.environ)
print(environ_value)
#ga = GaCore(Bin = 'gradsnc')
#ga = grads.GrADS(Verb=1, Echo=False, Port=False, Window=False, Opts="-c 'q config'")Bin='grads', Window=False, Echo=False
ga = grads.GrADS(Bin='grads', Window=False, Echo=False)
print(">>> OK <<< start GrADS")
fh = ga.open("G:\\ncep-09-18\\NCEP2009\\200901\\fnl_20090131_18_00.ctl")
print(">>> OK <<< start GrADS")
ga("d PRESsfc")
ga("gxprint D:\\x.png white")
del ga
错误为:
Traceback (most recent call last):
File "D:/py_workspace/gribdata.py", line 18, in <module>
ga = grads.GrADS(Bin='grads', Window=False, Echo=False)
File "C:\Python27\lib\site-packages\pygrads-1.1.9-py2.7.egg\grads\gacore.py", line 176, in __init__
rc = self._parseReader()
File "C:\Python27\lib\site-packages\pygrads-1.1.9-py2.7.egg\grads\gacore.py", line 1039, in _parseReader
raise GrADSError, "GrADS terminated while waiting for response"
grads.gacore.GrADSError: 'GrADS terminated while waiting for response'
试了很多次还是找不到错误原因,请帮助,正常流程绘图可以出图,就是用到接口就画不出来,谢谢大家。
|
|