- 积分
- 1164
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-16
- 最后登录
- 1970-1-1

|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我在求1948-2011年共64年的月平均水汽通量时,不知道脚本是哪儿不正确,最后得出的水汽通量图全都一样,也就是说1月,2月,3月..........的图都一模一样。
不知道是不是ave函数用错了,还是别的地方错了。 我是个新手,刚刚接触grads,请各位大神帮我看看啊,不胜感激!
我用的资料是ncep/ncar的在分析月平均资料,数据是从1948年开始的。
下面附上脚本文件和得出的图形:
'reinit'
'set grid off'
'set grads off'
'set poli on'
'set parea 1 10 1 8'
'sdfopen f:\data\monthly\shum.mon.mean.nc'
'sdfopen f:\data\monthly\uwnd.mon.mean.nc'
'sdfopen f:\data\monthly\vwnd.mon.mean.nc'
'sdfopen f:\data\monthly\pres.mon.mean.nc'
'set lat 4 53'
'set xlint 10'
'set lon 73 135'
'set ylint 10'
'set z 1 8'
'set ccols 9 14 4 11 5 13 3 10 7 12 8 2 6'
'set mpdset cnworld mres'
'set map 1 1 1'
'draw map'
'set ylopts 1 4 0.12'
'set xlopts 1 4 0.12'
'set cthick 4'
'define uq=shum.1*uwnd.2'
'define vq=shum.1*vwnd.3'
'define uqs=vint(pres.4(z=1),uq,300)/1000'
'define vqs=vint(pres.4(z=1),vq,300)/1000'
'define sq=mag(uqs,vqs)'
'define w1=ave(sq,t=1,t=757,12)'
'define w2=ave(uqs,t=1,t=757,12)'
'define w3=ave(vqs,t=1,t=757,12)'
'set z 1'
'set gxout shaded'
'd w1'
'set gxout contour'
'set cint 40'
'd w1'
'set gxout vector'
'd w2;w3'
'run cbarn'
'draw title 1948-2011 Jan average vopor flux china'
'printim e:\1.tif x1000 y800 white'
|
-
|