close all
clear all

rel_path = 'Deployments\April2013\134.89.12.189\data\R00000\'
if (ispc)
  path = ['X:\707976 EPBuoyPrototypeAndTesting\' rel_path];
end
if (isunix)
  path = ['/mbari/ProjectLibrary/707976 EPBuoyPrototypeAndTesting/' strrep(rel_path, '\', '/')];
end

rel_results_path = 


files = dir([path 'D*']);
%files = dir([path 'D00001*']);

idx = zeros(1,length(files));
for i = 1:length(files)
  if(strfind(files(i).name,'.mat'))
    idx(i) = i;
    idx(i-1) = i;  %This is a kludge, relies of file ordering to keep from re-decoding a file that already has a .mat file
  end
end

for i = 1:length(files)

    if(~idx(i))
      filename = files(i).name
      SurfaceLogFileDecoderRing(path,filename,path)
    end
end   
