- 积分
- 18
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2022-4-10
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
dy_ind = ind(year.le.1993.and.year.ge.1979)
ppre2 =f->pre(dy_ind,:,:)
opt = True
opt@nval_crit = 12 ; require at least 12 values for the "avg" is calculated.
pre_mon = calculate_monthly_values (ppre2, "avg", 0,opt)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
dy_ind2 = ind(year.le.2008.and.year.ge.1994)
pp2 =f->pre(dy_ind2,:,:)
opt = True
opt@nval_crit = 12 ; require at least 12 values for the "avg" is calculated.
ppre_mon = calculate_monthly_values (pp2, "avg", 0,opt)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
pre1 = new((/15,163,283/), float)
do i = 1994,2008
pre1(i-1994,:,:) = (pre_mon(5+(i-1994)*12,:,:)+pre_mon(6+(i-1994)*12,:,:)+pre_mon(7+(i-1994)*12,:,:))/3
end do
copy_VarMeta(pre_mon(0,:,:),pre1(0,:,:))
pre1!0 = "year"
pre1&year = ispan(1994, 2008, 1)
comp1 = dim_avg_n_Wrap(pre1(:,:,:), 0)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
pre2 = new((/15,163,283/), float)
do i = 1994,2008
pre2(i-1994,:,:) = (ppre_mon(5+(i-1994)*12,:,:)+ppre_mon(6+(i-1994)*12,:,:)+ppre_mon(7+(i-1994)*12,:,:))/3
end do
copy_VarMeta(ppre_mon(0,:,:),pre2(0,:,:))
pre2!0 = "year"
pre2&year = ispan(1994, 2008, 1)
comp2 = dim_avg_n_Wrap(pre2(:,:,:), 0)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
comp = comp1 - comp2
copy_VarMeta(comp1, comp)
|
-
|