- 积分
- 25057
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-9-28
- 最后登录
- 1970-1-1
![未绑定新浪微博用户 新浪微博达人勋](source/plugin/sina_login/img/gray.png)
|
发表于 2017-6-18 18:32:30
|
显示全部楼层
river楼主好,按照您提供的绘图程序,画U和Omga图,但出现的是真色图,实验数天也无法实现环流图,还烦请指导为盼,多谢。
附上gs文件
'reinit'
*'enable print f:\ly\1.gmf'
'open d:\ice\grads\omega_subhigh_strong.ctl'
'open d:\ice\grads\u_subhigh_strong.ctl'
'open d:\ice\grads\v_subhigh_strong.ctl'
'open d:\ice\grads\hgta_subhigh_strong.ctl'
'open d:\ice\grads\ncep_land\orog.ctl'
'set grads off'
'set grid off'
'set csmooth on'
'set map 15 1 9'
'set parea 1 10.2 1.5 8'
'set xlopts 1 6 0.14'
'set ylopts 1 6 0.14'
'set font 0'
'set zlog on'
'set t 1'
lon1=70.0
lon2=160.0
lat1=20.0
lat2=40.0
'define alfa=atan2('lat2-lat1','lon2-lon1')'
'set x 1'
'set y 1'
'set z 1 12'
*'set lev 1000 850 700 600 500 400 300 200 150 100'
*'set lev 1000 850 700 600 500 400 300 200 150 100'
*'set t 1'
lon=lon1
*'collect 1 free'
'collect 2 free'
'collect 3 free'
while(lon<=lon2)
lat=lat1+(lat2-lat1)*(lon-lon1)/(lon2-lon1)
*'collect 1 gr2stn(-om.1*100,'lon','lat')'
*'collect 2 gr2stn(u.2*cos(alfa)-v.3*sin(alfa),'lon','lat')'
'collect 2 gr2stn(u.2*cos(alfa)-om.1*100,'lon','lat')'
'collect 3 gr2stn(orog.5(t=1),'lon','lat')'
lon=lon+1
endwhile
*---------输出图形------------
'set lon 40 160'
'set lev 1000 100'
'set ylevs 1000 925 850 700 600 500 400 300 200 100'
'set xlabs 40N,70E|35N,80E|30N,110E|25N,140E|20N,160E'
'set gxout shaded'
'set csmooth on'
'set clab off'
'set clevs 0'
'set ccols 0 5 0'
'd coll2gr(3,-u)'
'set gxout vector'
'set strsiz 0.3'
'set arrscl 5. 10'
'set arrowhead 0.03'
*'set gxout stream'
'set ccols 0 '
'set clab on'
*'d maskout(coll2gr(2,-u),-coll2gr(3,-u));maskout(coll2gr(1,-u),-coll2gr(3,-u));mag(coll2gr(2,-u),coll2gr(1,-u))'
*;maskout(coll2gr(1,-u),-coll2gr(3,-u));mag(coll2gr(2,-u),coll2gr(1,-u))'
'd maskout(coll2gr(2,-u),-coll2gr(3,-u))'
*'d coll2gr(2,-u)'
'draw title along (40N,70E) to (20N,160E)'
'printim d:\ice\hgt\anypoumian.gif white'
*'printim d:\ice\hgt\anypoumian'% pentad % '_newn.gif white'
say 'ok'
'c'
|
-
|