- 积分
- 98
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-18
- 最后登录
- 1970-1-1
|
发表于 2021-1-13 17:59:19
|
显示全部楼层
你好,我按照您的方法用自己的数据画剖面,一直提示错误,自己实在找不出错在哪里,希望帮忙指教一下
我的数据ctl如下:
dset F:\2016and2018\Radar_winddata\Radar_Wind_dBz_2015.grd
undef 999.000000
title radar vr
xdef 1100 linear 70.0000000 5.99999987E-02
ydef 640 linear 16.0000000 5.99999987E-02
zdef 15 linear 0.500000000 0.500000000
tdef 24 linear 00z30Jul2015 1hr
vars 3
u 15 99 99
v 15 99 99
dbz 15 99 99
endvars
我的gs文件如下:
'reinit'
'open F:\2016and2018\Radar_winddata\Radar_Wind_dBz_2015.ctl'
'gxprint F:\2016and2018\Radar_winddata\radar_wind_poumian.png white'
'set grads off'
'set zlog on'
'set csmooth on'
'set x 1'
'set y 1'
'set lev 0.5 7'
'set t 9'
lon1 = 117.88
lon2 = 119.32
lat1 = 35.56
lat2 = 37
lon = lon1
'collect 1 free'
'collect 2 free'
while (lon <= lon2)
lat = lat1 + (lat2-lat1)*(lon-lon1) / (lon2-lon1)
'collect 1 gr2stn(u*2.5,'lon','lat')'
'collect 2 gr2stn(v*2.5,'lon','lat')'
lon = lon + 0.12
endwhile
'set lon 117.88 119.32'
'set lev 0.5 7'
'set t 9'
'set ylevs 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7'
'set gxout barb'
'set cthick 5'
'd coll2gr(1,-u);coll2gr(2,-u)'
'gxprint F:\2016and2018\Radar_winddata\radar_wind_poumian.png white'
;
提示错误为:cannot draw vectors/bars--U field all undefined
|
-
ctl
-
gs
|