% go_ship
infiles=dir('v2015*.asc');
fprintf('reading %d files\n', length(infiles));
load ship.mat
for ii=1:length(infiles)
    infile=infiles(ii).name;
    [new]=load_ship(infile);
    if isstruct(new)
        fprintf('%s %s - %s %d pts max dt %.1f\n', infile, ...
            datestr(new.mday(1)),datestr(new.mday(end)), ...
            length(new.mday),max(diff(new.mday))*24*60);
        ship=struct_merge(ship,new);
        movefile(infile,'data');
    else
        fprintf('could not read %s\n', infile);
    end
end
save ship.mat

        