- 积分
- 111
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-11-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
向各位大神请教:
我用GrADS将nc写为二进制文件后,自己写了ctl,然后画图,画第一层没有问题,可是画其他层次就出现了问题。
写二进制gs文件:
'reinit'
'sdfopen ./air.2013.nc'
'set gxout fwrite'
'set fwrite ./air.2013.grd'
tt=1
while ( tt <= 365 )
zz=1
while ( zz <= 3 )
'set t 'tt''
'set z 'zz''
'set x 1 144'
'set y 1 73'
'd air'
zz=zz+1
endwhile
tt=tt+1
endwhile
'disable fwrite'
'reinit'
ctl描述文件:
dset ^air.2013.grd
title NCEP data
undef 32766
xdef 144 linear 0.0 2.5
ydef 73 linear -90.0 2.5
zdef 3 levels 1000 925 850
tdef 365 linear 01JAN2012 1dy
vars 1
air 1 99 Sea Level Pressure
endvars
画除第一层外的其他层次时出现的错误信息:
ga-> open air.2013.ctl
Scanning description file: air.2013.ctl
Data file air.2013.grd is open as file 1
LON set to 0 360
LAT set to -90 90
LEV set to 1000 1000
Time values set: 2012:1:1:0 2012:1:1:0
E set to 1 1
ga-> set z 2
LEV set to 925 925
ga-> set t 1
Time values set: 2012:1:1:0 2012:1:1:0
ga-> d air
Data Request Warning: Request is completely outside file limits
Entire grid contents are set to missing data
Grid limits of file: X = 1 144 Y = 1 73 Z = 1 3 T = 1 365 E = 1 1
Grid limits of request: X = 1 145 Y = 1 73 Z = 2 2 T = 1 1 E = 1 1
Warning issued for variable = air
Cannot contour grid - all undefined values
ga->
|
|