- 积分
- 2005
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-4-7
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
提取年份的gs 如下:- 'reinit'
- 'set gxout fwrite'
- 'set fwrite D:\matlabht\tpdsi-spei\yt.grd'
- 'open D:\matlabht\pdsi\pdsi1901-2014.ctl'
- tt=1
- while(tt<115)
- 'set t 'tt
- 'q time'
- res=subwrd(result,3)
- res=substr(res,9,12) **00z01jan1901-00z01jan2014
- 'd 'res
- tt = tt+1
- endwhile
- 'disable fwrite'
- 'reinit'
复制代码 运行之后顺利得出grd文件,但是写了ctl却打不开,不知道哪里错了,ctl如下:
- dset d:\matlabht\tpdsi-spei\yt.grd
- undef 9999.9
- title 1901-2014 year time
- tdef 114 linear 1901 12mo
- vars 1
- res 0 99 year time
- endvars
复制代码
|
-
出错提示
|