登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 say苹果有虫 于 2016-7-14 15:42 编辑
问题:grads 报错:Cannot draw vectors/barbs -- U field all undefined
描述:
我有一个 .nc文件,一个wrf输出文件.dat配有.ctl,两个文件含有相同的变量。想在一个page里画两张图以便对比,然而总是报错:Cannot draw vectors/barbs -- U field all undefined,只能画出来第一张图;但是两个文件分开画就可以正常输出……这是为什么?求各位大侠指导!
附gs脚本及配图:
1.合在一起画的:
'reinit'
'open F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\press.ctl'
'sdfopen F:\data\ERA-interim\north2009_0101__0228.nc'
'enable print F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\compare.gmf'
*'define_colors'
'set vpage 0 11 0 8.5'
'set parea 1 5.5 1 7'
'set lat 18 33'
'set lon 108 123'
'set z 1'
'set time 00z22jan2009'
'set grads off'
'set map 9 1 6'
'set gxout vector'
'set arrscl 0.5 10'
'set arrowhead 0.08'
'd skip(U10.1,15,15);skip(V10.1,15,15)'
'draw title 00UTC22Jan \\ WRF wind at 10m'
'set vpage 0 11 0 8.5'
'set parea 6 10.5 1 7'
'set lat 18 33'
'set lon 108 123'
'set z 1'
'set time 00z22jan2009'
'set grads off'
'set map 9 1 6'
'set gxout vector'
'set arrscl 0.5 10'
'set arrowhead 0.08'
'd u10.2;v10.2'
'draw title 00UTC22Jan \\ ERA-interim wind at 10m'
'print'
'reinit'
2.分开画:
2.1 .nc文件
'reinit'
'sdfopen F:\data\ERA-interim\north2009_0101__0228.nc'
'enable print F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\compare_era.gmf'
*'define_colors'
'set vpage 0 11 0 8.5'
'set parea 1 10 1 7'
'set lat 18 33'
'set lon 108 123'
'set z 1'
'set time 00z22jan2009'
'set grads off'
'set map 9 1 6'
'set gxout vector'
'set arrscl 0.5 10'
'set arrowhead 0.08'
'd u10;v10'
'draw title 00UTC22Jan \\ ERA-interim wind at 10m'
'print'
'reinit'
2.2 .dat
'reinit'
'open F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\press.ctl'
'enable print F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\compare_wrf.gmf'
*'define_colors'
'set vpage 0 11 0 8.5'
'set parea 1 10 1 7'
'set lat 18 33'
'set lon 108 123'
'set z 1'
'set time 00z22jan2009'
'set grads off'
'set map 9 1 6'
'set gxout vector'
'set arrscl 0.5 10'
'set arrowhead 0.08'
'd skip(U10.1,15,15);skip(V10.1,15,15)'
'draw title 00UTC22Jan \\ WRF wind at 10m'
'print'
'reinit'
#------------------------------------------------------------------------------------------------------------------------------------------------
#------------------------------------------ 已解决 -------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------------------------------------------------
'reinit'
'open F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\press.ctl'
'sdfopen F:\data\ERA-interim\north2009_0101__0228.nc'
'enable print F:\ex\haze_0901_cv5\plot_type_press\haze_0901_press\case1\compare.gmf'
*'define_colors'
'set vpage 0 11 0 8.5'
'set parea 1 5.5 1 7'
'set dfile 1'
'set lat 18 33'
'set lon 108 123'
'set z 1'
'set time 00z22jan2009'
'set grads off'
'set map 9 1 6'
'set gxout vector'
'set arrscl 0.5 10'
'set arrowhead 0.08'
'd skip(U10.1,15,15);skip(V10.1,15,15)'
'draw title 00UTC22Jan \\ WRF wind at 10m'
'set vpage 0 11 0 8.5'
'set parea 6 10.5 1 7'
'set dfile 2'
'set lat 18 33'
'set lon 108 123'
'set z 1'
'set time 00z22jan2009'
'set grads off'
'set map 9 1 6'
'set gxout vector'
'set arrscl 0.5 10'
'set arrowhead 0.08'
'd u10.2;v10.2'
'draw title 00UTC22Jan \\ ERA-interim wind at 10m'
'print'
'c'
'reinit'
|