- 积分
- 40
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-7
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2016-5-2 16:46:34
|
显示全部楼层
谢谢大家,已经解决了,现po上完整的gs文件
'reinit'
'sdfopen d:\paper\sss\e008543m1980_2012_pre_chi_remapcon_24h_muldpm_seasmean_r.nc'
'set x 1'
'set y 1'
'set z 1'
'set t 1 133'
'define a1=tloop(aave(var142,lon=72.5,lon=136,lat=18,lat=72))'
'set fwrite d:\paper\biaozhuncha\1.grd'
'set gxout fwrite'
'set x 1'
'set y 1'
'set z 1'
sum1=0.0
tm=1
while(tm<=33)
l=(tm-1)*4+1
'set t 'tm''
'define be=ave(a1,t='l',t='l'+3)'
'd be'
tm=tm+1
endwhile
'disable fwrite'
'reinit'
'sdfopen d:\paper\sss\cru_ts3.22.1980_2012.pre_eas_remapcon_seasmean_r.nc'
'set x 1'
'set y 1'
'set z 1'
'set t 1 133'
'define a2=tloop(aave(pre,lon=72.5,lon=136,lat=18,lat=72))'
'set fwrite d:\paper\biaozhuncha\2c.grd'
'set gxout fwrite'
'set x 1'
'set y 1'
'set z 1'
tm=1
while(tm<=33)
l=(tm-1)*4+1
'set t 'tm''
'define bc=ave(a2,t='l',t='l'+3)'
'd bc'
tm=tm+1
endwhile
'disable fwrite'
'reinit'
'enable print d:\paper\biaozhuncha\ec11111.gmf'
'open d:\paper\biaozhuncha\1.ctl'
'open d:\paper\biaozhuncha\2e.ctl'
'set vpage 1 10 0.5 8'
'set xlopts 1 6 0.22'
'set ylopts 1 6 0.22'
'set grads off'
'set ylpos -0.0 1'
'set vrange 28 65'
'set yaxis 28 65 5'
'set dfile 1'
'set x 1'
'set y 1'
'set t 1 33'
'define ae=ave(be,t=1,t=33)'
'set x 1'
'set y 1'
'set z 1'
'set t 1 33'
'd be'
'd ae'
'set ylpos -0.0 r'
'set vrange 11 23'
'set yaxis 11 23 1'
'set ccolor 4'
'set dfile 2'
'set x 1'
'set y 1'
'set t 1 33'
'define ac=ave(c,t=1,t=33)'
'set x 1'
'set y 1'
'set z 1'
'set t 1 33'
'set cstyle 2'
'd c'
'd ac'
'print'
'disable print'
;
|
|