pingpath = 'adcp_pings';
files = dirs(fullfile(pingpath, '*.raw'));

for filei = 1:length(files)
   rawfile = files(filei).name;
   rawfilebase = rawfile(1:end-4);
   fullrawfile = fullfile('adcp_pings', [rawfilebase, '.raw'])
   binfpath = 'binfiles';
   yearbase = 2001;
   
end
