- 积分
- 112
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-8-17
- 最后登录
- 1970-1-1
|
发表于 2011-8-17 20:32:08
|
显示全部楼层
我想画夏天850的平均风场和位势高度场,用楼上的方法生成了xx.dat、xx.ctl文件,gs文件如下:
'reinit'
'sdfopen e:\uwnd.mon.mean.nc'
'sdfopen e:\vwnd.mon.mean.nc'
'sdfopen e:\hgt.mon.mean.nc'
'open D:\grads\tibetmaskout.ctl'
'enable print e:\1999summer850.gmf'
'set mpdset cnworld cnriver'
'set map 15 2 5'
'set lat 20 50'
'set lon 90 130'
'set xlint 5'
'set ylint 5'
'set xlopts 1 2 0.2'
'set ylopts 1 2 0.2'
'set gxout shaded'
'set clevs 1500'
'set ccols 0 5 0'
'set grads off'
'define hgtave=ave(hgt.3,t=618,t=620)'
'd maskout(hgtave,mask.4)'
'set z 3'
'set gxout vector'
'set arrowhead 0.15'
'set ccolor 1'
'set arrscl 0.3'
'define uwndave=ave(uwnd.1,t=618,t=620)'
'define vwndave=ave(vwnd.2,t=618,t=620)'
'd maskout(uwndave,mask.4);maskout(vwndave,mask.4)'
'set font 2 '
'set string 2 c 6 0'
'set strsiz 0.3 0.2'
'draw string 4.46 2.77 D'
'draw string 3.73 5.79 D'
*'draw string 4.25 2.35 D'
'set string 4 c 6 0'
'draw string 6.7 4.8 G'
'set font 0 '
'set string 1 c 2 0'
'set strsiz 0.2 0.3'
'draw string 5.5 8.0 1999 summer 850hPa Heights and Wind'
'print'
'disable print'
提示的错误信息是Operation error: Incompatable grids
Dimension ranges aren't equivalent
Operation Error: Error from maskout function
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = maskout(hgtave,mask.4)
可否请楼主指点一下?
|
|