- 积分
- 153
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-10-15
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
求助各位大神
这是我写的eof分解求NAO指数的程序,可是求出的时间序列的值在1到-1之间,但我看大多数文章都在-2到2之间,大神们帮我看看是为什么吗
begin
fili = "test1.nc"
f = addfile (fili, "r")
psl = f->psl(:,{29.68586:81.51833},{-100:40})
year = ispan(1850, 2005, 1)
dims = dimsizes(psl)
optEOF = True
optEOF@jopt = 0 ; This is the default; most commonly used; no need to specify.
;;optEOF@jopt = 1 ; **only** if the correlation EOF is desired
optETS = False
w = sqrt(cos(0.01745329*psl&lat))
wp = psl * conform(psl, w, 1)
copy_VarMeta(psl, wp)
x=wp(lat|:,lon|:,year|:)
neof = 3
eof = eofunc_Wrap(x, neof, optEOF)
printVarSummary(eof)
ntim = dims(0)
sig_pcv = eofunc_north(eof@pcvar, ntim, True)
eof_ts = eofunc_ts_Wrap(x, eof, optETS)
print(eof_ts)
eof_ts = dim_standardize_n(eof_ts, 1, 1)
nedf = addfile("pcl_winter-2.nc", "c")
eof_ts!1 = "year"
eof_ts&year = year
nedf->NAO = eof_ts(0,:)
end
;;;;;;;;;next ncl;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
begin
fili = "pcl_winter-2.nc"
f = addfile (fili, "r")
NAO = f->NAO
NAO_mean = runave_Wrap(NAO, 9, 0)
wks = gsn_open_wks("png","plot-xy-NAO_EOF-2")
gsn_define_colormap(wks,"rainbow")
res = True
res@vpHeightF = 0.35 ; 改变viewport的大小
res@vpWidthF = 0.6 ;
res@trXMinF = 1850 ; 设定X轴坐标范围
res@trXMaxF = 2005
res@trYMaxF = 2 ; 设定Y轴坐标范围
res@trYMinF = -2
res@tiXAxisString = "year" ; 添加X轴名称
res@tiYAxisString = "NAO" ; 添加Y轴名称
plot = gsn_csm_xy(wks,NAO&year,NAO_mean,res)
end
|
-
eof_pc1
|