- 积分
- 36034
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-7-26
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
处理数据顺序不同可能会导致出图结果不一样。
大家有没有作图时发现如果处理数据的顺序不同,得到的图也不一样呢?
下面以画标准差场为例:
数据说明:
dset d:\work\oisst\%y4%m2.dat
options template
undef -999.9
title SST monthly for 1981.12-2003.02 derived with the revised OI version2 analysis
xdef 360 linear 0.5 1
ydef 180 linear -89.5 1
zdef 1 linear 1 1
tdef 255 linear Dec1981 1mon
vars 1
sst 1 99 clim
endvars
作图要求:画冬季(12月~2月)SST标准差场
方案一:先提取逐年冬季(12月~2月)的SST场,共66个场,再对这66个场求标准差场。
*************提取冬季66个SST场***************
'reinit'
'open d:\work\oisst\oisstmon.ctl'
'set fwrite d:\work\winter.grd'
'set gxout fwrite'
'set x 1 360'
'set y 1 180'
'set z 1'
i=1
while(i<=255)
'set t 'i
'd sst'
j=1
while(j<=2)
'set t 'i+j
'd sst'
j=j+1
endwhile
i=i+12
endwhile
'disable fwrite'
*************画出冬季SST标准差场***************
'reinit'
'open d:\work\winter.ctl'
'set grads off'
'set grid off'
'set map 1 1 10'
'set lon 85 135'
'set lat 0 25'
'set z 1'
'set t 1 66'
'define anom=sst-ave(sst,t=1,t=66)'
'set t 1'
'set gxout shaded'
'set clevs 0.65'
'set rbcols 0 15'
'd sqrt(ave(anom*anom,t=1,t=66))'
'set gxout contour'
'set clskip 2'
'set clopts 1 0 0.15'
'd sqrt(ave(anom*anom,t=1,t=66))'
'printim d:\work\1.png white'
;
方案二:先对逐年冬季SST场做平均,即把每年12月~2月SST场做平均,得到22个场,再对这22个场求标准差场
************提取冬季(12月~2月平均)逐年SST场**************
'reinit'
'open d:\work\oisst\oisstmon.ctl'
'set fwrite d:\work\sst_winter_1981_2002.grd'
'set gxout fwrite'
'set x 1 360'
'set y 1 180'
'set z 1'
'set t 1'
i=1
while(i<255)
'd ave(sst,t='i',t='i'+2)'
i=i+12
endwhile
'disable fwrite'
****************画出冬季SST标准差场******************
'reinit'
'open d:\work\sst_winter_1981_2002.ctl'
'set grads off'
'set grid off'
'set map 1 1 10'
'set lon 85 135'
'set lat 0 25'
'set z 1'
'set t 1 22'
'define anom=sst-ave(sst,t=1,t=22)'
'set t 1'
'set gxout shaded'
'set clevs 0.65'
'set rbcols 0 15'
'd sqrt(ave(anom*anom,t=1,t=22))'
'set gxout contour'
'set clskip 2'
'set clopts 1 0 0.15'
'd sqrt(ave(anom*anom,t=1,t=22))'
'printim d:\work\work4_rms.png white'
;
大家可以讨论下这种问题~
|
|