load 'uhRHm'
M = uhRHm;

years = M (:,1);
RH = M (:,2);

uh5yRHm = fiveyearsmeanfunction (years, RH);

years2 = uh5yRHm (:,1);

RH2 = uh5yRHm (:,2);

mean5yRH = nanmean (RH2);

st5yRH = nanstd (RH2);

RH5y = [mean5yRH,st5yRH];

RHcorr = corr2 (years,RH);

RHcorr2 = corr2 (years2, RH2);


save ('/Users/sarahstuart/Desktop/MK/validated/relative humidity/overall/uh5yRHm','uh5yRHm');
save ('/Users/sarahstuart/Desktop/MK/validated/relative humidity/overall/RH5y','RH5y');









load 'uhRHm2'
M = uhRHm2;

years = M (:,1);
RH = M (:,2);

uh5yRHm2 = fiveyearsmeanfunction (years, RH);

years2 = uh5yRHm2 (:,1);

RH2 = uh5yRHm2 (:,2);

mean5yRH2 = nanmean (RH2);

st5yRH2 = nanstd (RH2);

RH5y2 = [mean5yRH2,st5yRH2];

RHcorr2 = corr2 (years,RH);

RHcorr2 = corr2 (years2, RH2);


save ('/Users/sarahstuart/Desktop/MK/validated/relative humidity/overall/uh5yRHm2','uh5yRHm2');
save ('/Users/sarahstuart/Desktop/MK/validated/relative humidity/overall/RH5y2','RH5y2');








