This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: .. a,b)) disp(sprintf(' aborting alignment for bun %d\n', bun)) skip_bun = 1 else disp(sprintf(' alignment for sector %d with %d:',a,b)) al = align_waves(waves1,waves2) Galigns(i).first = al.first diff = diff + (al.first(2) - al.first(1)) Galigns(i).last = al.last Galigns(i).sample = al.sample end end end if skip_bun == 0 save_aligns(bun) disp(sprintf('total delta for bundle %d is %d\n',bun,diff)) end end time = round(etime(clock,t0)) function save_aligns(bundle) Sheet1 Page 2 % save_aligns - saves each of the alignment structures in global % struct array Galigns into individual files of the form % 1.1.align.mat, 2.1.align.mat in the directory specifed by Gdir. global Gdir Gnum_scans Galigns for i=1:Gnum_scans first = Galigns(i).first last = Galigns(i).last sample = Galigns(i).sample save(sprintf('%s/%d.%d.align.mat',Gdir,i,bundle),'first','last','sample') end...
View Full Document
This note was uploaded on 04/20/2008 for the course ENGR 190 taught by Professor Staff during the Spring '08 term at Santa Clara.
- Spring '08