clear

mdl_prior='cesm_lme009';
p_yrs=1:1155;
mon_avg_o=3;mon_avg_f=4;
[M_t,mlat,mlon] = load_Smon_ex(mdl_prior,'t',mon_avg_o,mon_avg_f,p_yrs);

Xt=mon2ann(M_t,mon_avg_o,mon_avg_f);

save([mdl_prior '_t2m_avg' num2str(mon_avg_o) num2str(mon_avg_f) '_yrs_' num2str(p_yrs(1)+849) '_' num2str(p_yrs(end)+849)],'Xt','mlat','mlon','-v7.3');

