- 积分
- 1788
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-11-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 shirly 于 2013-9-18 11:37 编辑
想每24个时次的数据相加再求平均提取数据,原始文件的ctl如下:
d:/shirly/dat/minqin/binary/A52681-2005_2012.dat
title The ground routine data
undef 999.9
xdef 1 linear 103.08 1
ydef 1 linear 38.62 1
zdef 6 linear 1 6
tdef 70080 linear 20:00Z31dec2004 1hr
vars 1
DB 6 99 The shallow ground temperature 0mm 5mm 10mm 15mm 20mm 40mm
endvars
提取数据的gs文件写法如下:
'reinit'
'open d:\shirly\dat\minqin\binary\A52681-2005_2012.ctl'
'set gxout fwrite'
'set fwrite d:\shirly\dat\minqin\binary\A52679-2005_2012.ave_d.dat'
'set x 1'
'set y 1'
n=1
while(n<=6)
'set z 'n''
'set t 1 '
'd ave(DB,t=1,t=70080,24))'
n=n+1
endwhile
'disable fwrite'
'reinit'
提取出来的数据只有1K,不科学啊,请前辈指导,感激不尽~!
|
|