| 
 
	积分3302贡献 精华在线时间 小时注册时间2016-8-10最后登录1970-1-1 
 | 
 
 
 楼主|
发表于 2016-8-25 17:36:26
|
显示全部楼层 
| 本帖最后由 breeze_li 于 2016-8-25 17:41 编辑 
 
 格点数据的ctl不是只是一个网格么,没有数据,display出来就是一个空白网格。我这有一个例子model.ctl和model.gmp,在grads中代开model.ctl,然后d(ps/ta/ua/va...)就能出图
 这个是model.ctl文件:
 dset ^model.grb
 title "Sample Model Data for lats4d Tutorial"
 undef 1e+20
 dtype grib
 index ^model.gmp
 xdef 72 linear 0.000000 5.000000
 ydef 46 linear -90.000000 4.000000
 zdef 7 levels
 1000 850 700 500 300 200 100
 tdef 5 linear 0Z1jan1987 1dy
 vars 8
 ps        0    1,  1,  0,  0 Surface pressure [hPa]
 ua        7   33,100 Eastward wind [m/s]
 va        7   34,100 Northward wind [m/s]
 zg        7    7,100 Geopotential height [m]
 ta        7   11,100 Air Temperature [K]
 hus       7   51,100 Specific humidity [kg/kg]
 ts        0   11,105,  2 Surface (2m) air temperature [K]
 pr        0   59,  1,  0,  0 Total precipitation rate [kg/(m^2*s)]
 endvars
 model.gmp文件我这打不开,这个如果你有兴趣看的话就只能下载了,不好意思。
 
 后来我尝试用python和grads的接口,在python中写了gs文件,可以成功绘图,不过想知道上面这种是怎么实现的。
 
 
 | 
 |