- 积分
- 5634
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-1-9
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
利用nc数据文件画气候场的整层水汽通量散度积分图,脚本参考自此贴中的方法2:http://bbs.06climate.com/forum.php?mod=viewthread&tid=46015
gs文件:
*flying_nuist
'reinit'
'sdfopen D:\ecfiles\shum-qh.nc'
'sdfopen D:\ecfiles\uvrh39a.nc'
'sdfopen D:\ecfiles\sp39a.nc'
'set mpdset mres cnriver'
****************East area**************************
'set lon 40 120'
'set lat 10 50'
'set lev 1000 925 850 700 600 500 300'
'set z 1 8'
'define uave=ave(u.2*shum.1/9.8,t=1,t=117)'
'define vave=ave(v.2*shum.1/9.8,t=1,t=117)'
'set z 1'
'define ps=ave(0.01*sp.3,t=1,t=117)'
'define uvin=vint(ps,uave,300)'
'define vvin=vint(ps,vave,300)'
'define shdiv=hdivg(uvin,vvin)'
'set grads off';'set grid off';'set map 1 1 3'
'set parea 0.7 10.5 0.8 8'
'set lon 40 120'
'set lat 10 50'
'set xlopts 1 4 0.20';'set ylopts 1 4 0.20';
'set xlint 10';'set ylint 10 '
'set grads off'
'set gxout contour'
'set ccols 1'
'set cint 2e-6'
'set csmooth on'
*'set clab off'
'd shdiv'
'printim d:\gradswork\shuiqimore.png x1000 y800 white'
;
报错:
Data Request Error: Invalid grid coordinates
World coordinates convert to non-integer grid coordinates
Variable = v.2 Dimension = 2
Operation Error: Error from ave function
Error ocurred at column 1
DEFINE error: Invalid expression.
Data Request Warning: Request is completely outside file limits
……
Data Request Warning: Request is completely outside file limits
Syntax Error: Invalid Operand
'uave' not a variable or function name
Operation Error: Error from vint function
Error ocurred at column 1
DEFINE error: Invalid expression.
Syntax Error: Invalid Operand
'vave' not a variable or function name
Operation Error: Error from vint function
Error ocurred at column 1
DEFINE error: Invalid expression.
Syntax Error: Invalid Operand
'uvin' not a variable or function name
Operation Error: Error from hdivg function
Error ocurred at column 1
DEFINE error: Invalid expression.
Syntax Error: Invalid Operand
'shdiv' not a variable or function name
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = shdiv
问了同学和师兄都没能解决,有人说有时候grads就是会突然不识别,是这样吗?
求助各位大神!万分感激!
|
|