- 积分
- 3307
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-12-12
- 最后登录
- 1970-1-1
|
发表于 2021-5-25 17:21:53
|
显示全部楼层
请问我要同时添加地形和变量填色,但是最后出来地形只有一条线,是什么原因呢?ctl如下:
'reinit'
'sdfopen e:\2020\ec2.nc'
'open e:\2020\xpm\orog0.25.ctl'
'enable print e:\2020\xpm\vor+div-terrain.gmf'
'set dfile 2'
'set t 1'
'set x 1'
'set y 1'
'set z 1 17'
lon1=102.0
lon2=106.0
lat1=28.0
lat2=33.0
lon=lon1
'collect 3 free'
while(lon<=lon2)
lat=lat1+(lat2-lat1)*(lon-lon1)/(lon2-lon1)
'collect 3 gr2stn(orog,'lon','lat')'
lon=lon+1
endwhile
'set dfile 1'
'set grads off'
'set zlog on'
'set csmooth on'
'set x 1'
'set y 1'
'set lev 1000 100'
'set t 7'
lon1 =102
lon2 =106
lat1 = 28.0
lat2 = 33.0
lon = lon1
'collect 1 free'
'collect 2 free'
while (lon <= lon2)
lat = lat1 + (lat2-lat1)*(lon-lon1) / (lon2-lon1)
'collect 1 gr2stn(d*100000,'lon','lat')'
'collect 2 gr2stn(vo*100000,'lon','lat')'
lon = lon + 1
endwhile
'set grads off'
'set zlog on'
'set grid off'
'set lon 102 106'
*'set z 1 27'
*'set ylab off'
*'set xlab off'
'set csmooth on'
*'set parea 1.5 9.0 1.5 6.5'
*'set xlopts 1 6 0.14'
*'set ylopts 1 6 0.14'
*'set font 0'
'set x 14 16'
*'set xaxis 'lon1' 'lon2
'set xaxis 'lat1' 'lat2
'set clab on'
'set gxout shaded'
'set xlint 1'
*'set ccols 0 0 7 0'
*'set ccolor 1'
'd coll2gr(1,-u)'
'set gxout contour'
*'set cint 0.5'
'set cthick 6'
'set ccolor 1'
'd coll2gr(2,-u)'
'set lon 102 106'
'set z 1 27'
'set gxout shade2'
'set clevs 0'
'set ccols -1 1'
'd coll2gr(3,-u)'
*'cbarn 1 0'
'print'
'disable print'
'reinit'
|
-
|