function mabay_parse(name);

err = 0;
opts = 0;

% Check to see if raw data file exists and is larger than 1 MB....
file_check = dir(strcat(name, '.obd'));

if length(file_check) == 0
   fprintf(1, 'Does not exist %s\n', name);,
   return
elseif file_check.bytes < 500000
   fprintf(1, 'File too small %s\n', name);,
   return
end;

fprintf(1, 'GOOD: %s File size %2.0f bytes\n', file_check.name, file_check.bytes);
% Parse the raw file...
obd_name = sprintf('parse -bv -o basic -o loops %s.obd', name);
dos(obd_name)

return;

% Execute the resulting .m file, and save the resulting .mat file
% eval(name);
% save(name);

% Erase the .m file and the .dat file...
% delete(strcat(name, '.m'));
% delete(strcat(name, '.dat'));