- 积分
- 538
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-21
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2013-4-18 09:02:58
|
显示全部楼层
river 发表于 2013-4-18 07:47
你要使用scorr函数求两个场的相关,如果只有一个时次,那出来的就有一个值。如果是多时次的,出来的是一个 ...
对,求一个值,我给发一下我写的gs文件吧,麻烦给看下
'reinit'
'open c:\GrADS19\data\1980grid.ctl'
'open c:\GrADS19\data\guang1.ctl'
'set grads off'
'define a1=oacres(g,x.2)'
'define aaa=smth9(a1)'
'open 1980data.ctl'
'set dfile 3'
'define aa=ave(a.3,t=1,t=366)'
'open 1981data.ctl'
'set dfile 4'
'define a2=ave(a.4,t=1,t=365)'
'set mpdset cnscs'
'set lon 73 120'
'set lat 30 55'
*'set t 1'
'd scorr(a1,(aa+a2)/2,lon=73,lon=120,lat=30,lat=55)'
'enable print xiangguan.gmf'
'print'
'disable print'
;
|
|