| 
 
	积分2012贡献 精华在线时间 小时注册时间2016-4-7最后登录1970-1-1 
 | 
 
| 
这里有一个grd的描述文件u.ctl如下:
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  dset ^u_%y4%m2.dat
 undef -9.99E+8
 title anl_p125_thse
 options template
 ydef 145 linear -90.000000 1.25
 xdef 288 linear 0.000000 1.250000
 tdef 720 linear 00Z01jan1958 1mo
 zdef 27 levels
 1000 975 950 925 900 875 850 825 800 775 750 700 650 600 550 500 450 400 350 300 250 225 200 175 150 125 100
 vars 1
 u    27   99    (profile) Relative Humidity [%]
 ENDVARS
 
 想要转换成nc文件,gs如下:
 'reinit'
 'open u.ctl'
 'set gxout fwrite'
 'set sdfwrite -flt 1958.2017.u.monthly.nc'
 tt=1
 while(tt<=720)
 zz=1
 while(zz<=27)
 'set x 1 288'
 'set y 1 145'
 'set t 'tt
 'set z 'zz
 'define uu=u'
 'd uu'
 zz=zz+1
 endwhile
 tt=tt+1
 endwhile
 'disable fwrite'
 ;
 
 显然这样的循环是无法追加到nc文件中的,但本人有点笨,一直没找到追加nc数据的方法,有知道的坛友可以赐教一下吗?谢谢了。
 
 
 
 | 
 |