- 积分
- 3123
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-12-20
- 最后登录
- 1970-1-1
|
发表于 2017-12-17 17:14:04
|
显示全部楼层
大神你好,我是在画高度场斜剖面时出现了问题,以下是我的脚本:
- 'reinit'
- 'set xlopts 1 5 0.13'
- 'set ylopts 1 5 0.16'
- 'set clopts -1 -1 0.1'
- 'open f:/a2017/wrfout2/hs612xd01.ctl'
- 'set parea 1 7 3 8'
- 'set mproj scaled'
- 'set grads off'
- 'set grid off'
- 'set mpdset hires'
- 'set map 1 1 7'
- 'set font 1'
- 'set cthick 6'
- **********************
- 'set x 1'
- 'set y 1'
- lon1=120
- lon2=121
- lat1=37
- lat2=36
- 'set z 1 10'
- 'set t 7'
- lon=lon1
- 'collect 1 free'
- 'collect 2 free'
- 'collect 3 free'
- 'collect 4 free'
- 'collect 5 free'
- 'collect 6 free'
- 'collect 7 free'
- while(lon<=lon2)
- lat=lat1+(lat2-lat1)*(lon-lon1)/(lon2-lon1)
- 'collect 1 gr2stn(tc,'lon','lat')'
- 'collect 2 gr2stn(w*100,'lon','lat')'
- 'collect 3 gr2stn(u,'lon','lat')'
- 'collect 4 gr2stn(v,'lon','lat')'
- 'collect 5 gr2stn(w,'lon','lat')'
- 'collect 6 gr2stn(tsk-273.15,'lon','lat')'
- 'collect 7 gr2stn(pblh+hgt,'lon','lat')'
- lon=lon+0.045
- endwhile
- **********************
- 'set lon 120 121'
- 'set z 1 10'
- 'set t 7'
- 'set gxout shaded'
- 'define_colors'
- 'set clevs -0.007 -0.006 -0.005 -0.004 -0.003 -0.002 -0.001 0 0.001 0.002 0.003 0.004'
- 'set ccols 59 58 57 56 55 54 53 52 22 24 25 26 27'
- 'd coll2gr(5,10)'
- 'cbar'
- 'gxprint f:/a2017/ctl/xiepoumian702.png white x1000 y800'
- 'reinit'
复制代码
然后就是每次运行画图来的图都不太一样,而且后面我画温度场每次数值也都不一样,我想问这是lon=lon+分辨率这步出了问题么 |
-
-
|