function mabay_limits(name);

err = 0;
opts = 0;

% Check and see if file exists...
file_check = dir(strcat(name, '.dat'));
if length(file_check) == 0
   % fprintf(1, 'doesnt exist %s\n', name);,
   return
elseif file_check.bytes < 2000000
   % fprintf(1, 'not enough bytes %s\n', name);,
   return
end;

% Run review...
eval(name, 'err = 1;');
if err ==1 | ~exist('m_present_time')
   % fprintf(1, 'no %s\n', name);
   return;
end;

total_time = (time(length(time)) - time(1))/60;

if total_time < 10
   return;
end;

ok = find((time > 45));

fid = fopen('MABay98.limits', 'a');
if ftell(fid) == 0
   fprintf(fid, '  Name   start   end x_depth n_depth x_temp x_temp x_salt n salt x_flour n_fluor x_obs n_obs');
end;

startstr = datestr((start + 62167305600.00)/(24*60*60));

% fprintf(1, '%s  %s %3.0f min %3.0f m %2.0f deg\n', ...
   % name, startstr, round(total_time), round(max(data(:, m_depth))), round(180/pi*median(abs(data(:, m_pitch)))));
fprintf(1, '%s', name);
fprintf(1, '  %5', startstr); 
fprintf(1, 'Length       = %3.0f min \n', round(total_time)); 
fprintf(1, 'Max depth    = %3.0f m \n', round(max(data(:, m_depth)))); 
fprintf(1, 'Median pitch =  %2.0f deg \n\n', round(180/pi*median(abs(data(:, m_pitch)))));

% Only produce grid plots if vehicle yoyos...
if 180/pi*median(abs(data(:, m_pitch))) > 19
   return;
end;

% Generate plots and send to the printer...
% multigrid;
% CTDFOPlot;
% set(gcf, 'PaperOrientation', 'landscape', 'PaperPosition', [0.25 0.25 10.5 8]);
% print;