- 积分
- 1065
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-3-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位前辈好!我的原始grd格式的海温数据是1950年1月到2016年12月的,现在我需要求出这些年的每年的冬季平均数据,也就是每年的12月到次年2月的,一共66年的,可是我的脚本运行不了,请各位大神们帮我看看哪里出错了,附上ctl文件和脚本,感谢大家了!
ctl:
dset d:/change/sst_195001_201612.grd
title mean monthly NCEP Reanalysis (1950-2016)
undef -999000000.000000
xdef 61 linear -150 1
ydef 11 linear -5 1
zdef 1 levels 1000
tdef 804 linear Jan1950 1mo
vars 1
ps 0 99 surface pressure
endvars
脚本:
'reinit'
'open D:/change/winner.ctl'
'set fwrite D:/change/sst_ave_winner.grd'
'set gxout fwrite'
tt=12
while(tt<=794)
'set t 'tt' 'tt+2''
'define a=ave(sst,t='tt',t='tt+2')'
'd a'
tt=tt+12
endwhile
'disable fwrite'
|
|