- 积分
 - 1637
 
	- 贡献
 -  
 
	- 精华
 
	- 在线时间
 -  小时
 
	- 注册时间
 - 2016-3-18
 
	- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
	
 
 
发表于 2017-9-6 22:43:31
|
显示全部楼层
 
 
 
大神,我使用的是0.25*0.25的资料,然后根据楼主给的脚本得出0.25*0.25的地形资料,套用脚本运行,结果只有地形图像,没有流线图像。请教大神指导! 
'reinit' 
'open D:\data\20170707.ctl' 
'open E:\gs\dixing\1X1\orog1.ctl' 
'set grads off' 
'set grid off' 
'set zlog on' 
lon1=70.0 
lon2=130.0 
lat1=35.0 
lat2=45.0 
'define alfa=atan2('lat2-lat1','lon2-lon1')' 
'set x 1' 
'set y 1' 
'set lev 1000 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(-VVELprs*10,'lon','lat')' 
'collect 2 gr2stn(UGRDprs*cos(alfa)+VGRDprs*sin(alfa),'lon','lat')' 
'collect 3 gr2stn(orog.2(t=1),'lon','lat')' 
lon=lon+1 
endwhile 
'set lon 70 130' 
'set lev 1000 100' 
'set ylevs 1000 925 850 700 600 500 400 300 200 100' 
'set xlabs 35N,70E|37N,82E|39N,94E|41N,106E|43N,118E|45N,130E' 
'set gxout shaded' 
'set csmooth on' 
'set clab off' 
'set clevs 0' 
'set ccols 0 5 0' 
'd coll2gr(3,-u)' 
 
'set gxout stream' 
'set clab on' 
*'d coll2gr(2,-u);coll2gr(1,-u);mag(coll2gr(2,-u),coll2gr(1,-u))' 
****mag求平方根 
'd maskout(coll2gr(2,-u),-coll2gr(3,-u));maskout(coll2gr(1,-u),-coll2gr(3,-u));mag(coll2gr(2,-u),coll2gr(1,-u))' 
 
'draw title along (35N,70E) to (45N,130E)' 
'printim E:\gs\xiepoumian\anypoumian_liuxian.gif white' 
say 'ok' 
; |   
 
 
 
 |