%% Pre-proccesing AYA1_B OR _A

dir = 'D:\Data\AYA1\';
ses = {'AYA1_140808'};
files = {{'AYA1_140808_postProbe_A','AYA1_140808_postSleep_A','AYA1_140808_postSleep2_A','AYA1_140808_postSleep3_A',...
        'AYA1_140808_preProbe_A','AYA1_140808_trials_A','AYA1_140808_trials2_A','AYA1_140808_trials3_A'}};
    
nChannels = 256;

for i=1:length(ses)
    for j=1:length(files{i})
    RemoveDCfromDatandReorderXml([dir ses{i} '\' files{i}{j}]);
    %ResampleBinary([dir ses{i} '\' files{i}{j} '_reo.dat'],[dir ses{i} '\' files{i}{j} '_reo.eeg'],nChannels,1,16);
    end
end

