| 
 
	积分3648贡献 精华在线时间 小时注册时间2014-1-16最后登录1970-1-1 
 | 
 
GrADS
| 系统平台: |  |  
| 问题截图: | - |  
| 问题概况: | grads批处理时出的dat都是一样的 |  
| 我看过提问的智慧: | 看过 |  
| 自己思考时长(天): | 3 |  
| 
我在批处理的时候所产生的最后结果的DAT的内容都是一样的
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  运行整个gs的时候并没有报错
 这个是我的ctl之一 其他的类似
 
 复制代码
<P> dset H:\q11\%y4.dat
options template
undef -9.99E+08
title mean daily NMC reanalysis<1983>
xdef  144 linear    0  2.5
ydef   73 linear  -90  2.5
zdef   12 levels 1000 925 850 700 600 500 400 300 250 200 150 100
tdef  23376 linear 00Z01JAN1948 1dy
vars    1
q11     12  99 ** local change                :J/s.kg
endvars</P>
这个是我的gs
 
 复制代码
<P>'reinit'
'OPEN E:\q1\rsj\q11.ctl'
'OPEN E:\q1\rsj\q12.ctl'
'OPEN E:\q1\rsj\q13.ctl'
'open E:\q1\rsj\pres.CTL'
yy=1948 
j=0
 id=1
while(yy<=2011)
'set gxout fwrite'
'set fwrite H:\q1\'yy'.grd'
 'set x 1 144'
 'set y 1 73'
 if ((math_mod(yy,4)=0&math_mod(yy,100)!=0)|math_mod(yy,400)=0)</P>
<P>  while(id<=366+j)
    'set t 'id''</P>
<P>      'd vint(pres.4/100,q11.1+q12.2+(q13.3+q14.3+q15.3)/3,100)/9.8'</P>
<P>        id=id+1
  endwhile
  j=j+366
else
     
  while(id<=365+j)
    'set t 'id''</P>
<P>      'd vint(pres.4/100,q11.1+q12.2+(q13.3+q14.3+q15.3)/3,100)/9.8'</P>
<P>        id=id+1
        endwhile
        j=j+365
        endif
        'close 1'
        yy=yy+1
'disable fwrite'
endwhile
'print'
'reinit'
;</P>
<P> </P>
<P> </P>
<P> </P>
希望大神们抽空看看 帮我解决一下
 
 
 
 | 
 |