
   %written by quick_adcp.py
   FID_LOG = []; %needed to fake out matlab
   t0_array = 172.061424;
   attfile = 'oc415';
   year_string = 2005;
   start_dd = 172.061424;
   pages = 2;
   print_flag = 0;
   dt = 191.474803 - 172.061424;
   cruise_title = 'oc415';

   %load the att data and set up all the variables
   if exist('load_att')
     load_att;

     for t0 = t0_array
       t1 = t0 + dt;
       time_mask = (att(i_day,:) <= t1 & att(i_day,:) >= t0);

       jall = find(time_mask);
       jgood = find(time_mask & good_mask);
       njall = length(jall);
       njgood = length(jgood);
       
       fprintf(FID_LOG,'  t0: %5.1f;  %d points, ',      t0, njall);
       fprintf(FID_LOG,'%d accepted; %5.2f percent rejected\n', ...
       njgood, 100 * (njall - njgood)/njall);
       end
   else
      fprintf(2,'load_att not on path\n')
   end

