n=dir('sit0*');
rate=125';
windowtime=5;

for i=1:length(n)
    load(n(i).name,'sd','mtim');
    [sitdatapersec,pds,pds01]=sit2pdsloopcenterbin(sd,rate,windowtime);
    
    save(['sitcb',num2str(i,'%03.0f')],'s*','pds*','*tim','w*','r*','n*');
    clear s* pds* m*
end
