爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3459|回复: 0

关于grads批处理的问题

[复制链接]
发表于 2015-4-19 11:21:12 | 显示全部楼层 |阅读模式
GrADS
系统平台:
问题截图: -
问题概况: grads批处理时出的dat都是一样的
我看过提问的智慧: 看过
自己思考时长(天): 3

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
我在批处理的时候所产生的最后结果的DAT的内容都是一样的
运行整个gs的时候并没有报错
这个是我的ctl之一 其他的类似

  1. <P> dset H:\q11\%y4.dat
  2. options template
  3. undef -9.99E+08
  4. title mean daily NMC reanalysis<1983>
  5. xdef  144 linear    0  2.5
  6. ydef   73 linear  -90  2.5
  7. zdef   12 levels 1000 925 850 700 600 500 400 300 250 200 150 100
  8. tdef  23376 linear 00Z01JAN1948 1dy
  9. vars    1
  10. q11     12  99 ** local change                :J/s.kg
  11. endvars</P>
复制代码

这个是我的gs

  1. <P>'reinit'
  2. 'OPEN E:\q1\rsj\q11.ctl'
  3. 'OPEN E:\q1\rsj\q12.ctl'
  4. 'OPEN E:\q1\rsj\q13.ctl'
  5. 'open E:\q1\rsj\pres.CTL'
  6. yy=1948
  7. j=0
  8. id=1
  9. while(yy<=2011)
  10. 'set gxout fwrite'
  11. 'set fwrite H:\q1\'yy'.grd'
  12. 'set x 1 144'
  13. 'set y 1 73'
  14. if ((math_mod(yy,4)=0&math_mod(yy,100)!=0)|math_mod(yy,400)=0)</P>
  15. <P>  while(id<=366+j)
  16.     'set t 'id''</P>
  17. <P>      'd vint(pres.4/100,q11.1+q12.2+(q13.3+q14.3+q15.3)/3,100)/9.8'</P>
  18. <P>        id=id+1
  19.   endwhile
  20.   j=j+366
  21. else
  22.      
  23.   while(id<=365+j)
  24.     'set t 'id''</P>
  25. <P>      'd vint(pres.4/100,q11.1+q12.2+(q13.3+q14.3+q15.3)/3,100)/9.8'</P>
  26. <P>        id=id+1
  27.         endwhile
  28.         j=j+365
  29.         endif
  30.         'close 1'
  31.         yy=yy+1
  32. 'disable fwrite'
  33. endwhile
  34. 'print'
  35. 'reinit'
  36. ;</P>
  37. <P> </P>
  38. <P> </P>
  39. <P> </P>
复制代码

希望大神们抽空看看 帮我解决一下


密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表