function UpdateAll()
%   Function: UpdateAll
%   Author: Daniel O'Hara
%   Date: 12/6/2015
%   Description: Main function to perform all processing steps for cruise
%   magnetic data, from collection of raw data to output of corrected
%   magnetic data.

    parfor i = 1:2
        updateData(i); % Collect raw magnetic and navigation data.
    end

    saveMNG()   % Collect and save raw data into one .mat file.
    combineMN2()    % Combine magnetic and navigation raw data based on 
                    %   serial date.
    cleanMag()  % Clean magnetic data to remove erronous/missing values. 
                %   Also filter data to remove high-frequency features.
    removeBackgroundMag()   % Remove background magnetic field using values
                            %   from Dec. 2nd, 2015.
    removeShipMag() % Remove ship magnetic field data.
    output_M_MB_MBS()   % Output processed magnetic data to .llm 
                        %   (longitude,latitude,meter) files to use in GMT.
end