| 
 
	积分3348贡献 精华在线时间 小时注册时间2017-3-9最后登录1970-1-1 
 | 
 
| 
本帖最后由 言墨 于 2019-12-12 23:17 编辑
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 grads 编写ctl处理nc文件
 grads小白,求问各位大佬,我针对nc文件编写了ctl文件,画图时却出现这个报错(已经搜索了好久相关问题,气象家园也有人问,但是好像都没说怎么解决):
 gancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound
 Data Request Error:  Error for variable 'sfh'
 Error ocurred at column 1
 DISPLAY error:  Invalid expression
 Expression = sfh
 
 
 这个是原nc文件:
 lev = 12
 lat = 180
 variables:
 float sfh ( lev, lat )
 average_op_ncl :       dim_avg_n over dimension(s): model
 _FillValue :   1e+20
 
 double lev ( lev )
 standard_name :        air_pressure
 long_name :    pressure
 positive :     down
 axis : Z
 units :        hPa
 
 float lat ( lat )
 standard_name :        latitude
 long_name :    latitude
 units :        degrees_north
 axis : Y
 
 
 这是我编写的ctl:
 dset sfh.nc
 title correlation
 dtype netcdf
 undef 9999
 xdef 1 linear 0 1
 ydef 180 linear -89.5 1.0
 zdef 12 levels 100 150 200 250 300 400 500 600 700 850 925 1000
 tdef 1 linear JUN1960 1mon
 vars 1
 sfh 12 99  z,y ssffhh
 endvars
 
 
 | 
 |