- 积分
- 15698
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-3-23
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这两天做EOF分解发现一个问题。先用原始数据做了一次EOF分解,再用dim_rmvmean_n_Wrap这个函数求数据的距平值再做一次EOF分解,两次的结果一样,有点不理解怎么会出现这样的结果。想问下有人遇到过这样的情况吗?
下面是处理数据和EOF的NCL脚本
f0 = addfile("precip.mon.mean.2.5x2.5.nc","r")
vname = getfilevarnames(f0)
print(vname)
;exit
yrStrt = 1958
yrLast = 2013
TIME = f0->time
YYYY = cd_calendar(TIME,-1)/100 ; entire file
iYYYY = ind(YYYY.ge.yrStrt .and. YYYY.le.yrLast)
prep = f0->precip(iYYYY,:,:)
printVarSummary(prep)
;prep = dim_rmvmean_n_Wrap(prep,0)
Prep = month_to_season(prep(:,{0:60},{100:160}),"JJA")
nyrs = dimsizes(Prep&time)
w = sqrt(cos(0.01745329*Prep&lat))
wp = Prep*conform(Prep, w, 1)
copy_VarCoords(Prep, wp)
x = wp(lat|:,lon|:,time|:)
optEOF = True
optEOF@jopt = 0
eof1 = eofunc_Wrap(x, 2, optEOF)
eof = eof1*10
copy_VarCoords(eof1, eof)
;optEOF=True
;optEOF@jopt = 1
sig_pcv = eofunc_north(eof@pcvar, nyrs, False)
eof_ts = eofunc_ts_Wrap(x, eof, False)
eof_ts = dim_standardize_n(eof_ts, 1, 1)
|
|