function dum=t2ps(site)
eval(['load t_to_ps.txt.' site])
td_t1=t_to_ps(:,1)';
td_t2=t_to_ps(:,2)';
td_am=t_to_ps(:,3)';
td_ch=t_to_ps(:,4)';
p_rep=357120*2;
p_offsetppd=0;
if site=='T'
 ch_adcint=[12 12 2 2];
 ch_filter={'b42d180.fir' 'b42d180.fir' 'b42d180.fir' 'b42d180.fir'};
 ch_f=[13 14 11 9];
else
 ch_adcint=[12 12];
 ch_filter={'b42d180.fir' 'b42d180.fir'};
 ch_f=[13 14];
end
for f=1:length(ch_f)
 td_ch(find(td_ch==ch_f(f)))=f;
end
clear t_to_ps f
eval(['save tau3' site 'pat_PS'])
