%a-cals, 111
close all
clear all

A=dir('/Users/emmanuel.boss/Desktop/EXPORTS02/SlowDROP/cals_SlowDROP/*.dat')
T_cal=28.48;
k=1
m=1
for i=1:length(A)
    if A(i).name(1)=='a'
        temp=str2num([A(i).name(16:17),'.',A(i).name(19)]);
        [cal_a(k,:) dev_cal_a(k,:), wla]= process_cal_acs111(A(i).name,'a',temp,T_cal);
        a_name(k,:)=string(A(i).name);
        date_a(k)=datenum(2021,5,str2num(A(i).name(12:13)),16,0,0);
        k=k+1;
    else
        temp=str2num([A(i).name(16:17),'.',A(i).name(19)]);
        [cal_c(m,:) dev_cal_c(m,:), wlc]= process_cal_acs111(A(i).name,'c',temp,T_cal);
        c_name(m,:)=string(A(i).name);
        date_c(m)=datenum(2021,5,str2num(A(i).name(12:13)),16,0,0);
        m=m+1;
    end
end

clear A


figure(1)
plot(wla,cal_a)
legend(datestr(date_a))

figure(2)
plot(wlc,cal_c)
legend(datestr(date_c))

save cal_111



