

         %% no diary written %% 
         %% no change to display %% 

        
            % begin "matcfgstr" string, created by run_lastensq.py
            instclass = os;
            instname  = 'os75';
            pingtype  = 'nb';
            proc_yearbase  = 2010;
            yearbase  = 2010;
            cfg =get_uhdascfg('cfgbase'  , 'at15_61',...
                              'cfgpath'  , '/home/data/at15_61/proc/os75nb/config',...
                              'instclass', instclass,...
                              'instname' , instname,...
                              'pingtype' , pingtype);
            gbindirbase = cfg.gbindirbase;
            allparams = cfg.allparams;
             

        


        % heading correction instrument comes from config/cruise_cfg.m
        % NEW: override with hcorr_args, not hcorr_inst
        % (1) if there isn't one bomb out.
           if ~isfield(cfg, 'hcorr_args'),
               error('load_uhblk_tmp.m: no heading correction setting: check config/cruise_cfg.m -- version mismatch??')
           end

        % (3)  override from quick_adcp.py if desired
        %      eg. hcorr_args = {'posmv', 'pmv', 'acc_heading_cutoff', .018};
           cfg.hcorr_inst = 'phins';              % this should be obsolete, but here for constistency
        % this is what is used. see get_rbinheading.m :
           %%====> quick_adcp.py overrriding:
 cfg.hcorr_args = {'phins', 'hdg'};

        % matlab does not know about post_headcorr at this point; only
        % "ping_headcorr = 0" or "ping_headcorr = 1"
        % matlab initializing ping_headcorr = 0
        ping_headcorr = 0;

        % quick_adcp.py overrides follow:
        %====> quick_adcp.py overrriding:
 ping_headcorr = 1;
        %====> quick_adcp.py overrriding:
 num_persistence = 24;


        params = get_params(allparams, instname, pingtype);

        params.showverbose = 0;
        params.pingedit = 'all';
        params.proc_yearbase = proc_yearbase;
        params.yearbase = yearbase;


        % params comes from ../config/cruiseid_proc.m
        % this matlab file is written by python: override some things here
        params.interval = 300;

        %%====> quick_adcp.py overrriding:
 params.bottom = 'xy2z';

        % can override single ping editing either manually ...
        % see get_pedefaults
        % ... or in an m-file
        if exist('override_editcfg.m','file')
                override_editcfg
        else
            fprintf('Using pingedit defaults (no editcfg override file: override_editcfg)\n')
        end



        % This list MUST start at the beginning if the list of all
        % possible files.  DO NOT delete any files from the raw
        % directory after processing (averaging) has begun or it will
        % throw off total ensemble count used by write_ensblk.m


        % all files:
        files = {'/home/data/at15_61/raw/os75/at2010_028_85576.raw',...
'/home/data/at15_61/raw/os75/at2010_029_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_029_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_029_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_029_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_029_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_029_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_029_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_029_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_029_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_029_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_029_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_029_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_030_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_030_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_030_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_030_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_030_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_030_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_030_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_030_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_030_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_030_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_030_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_030_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_031_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_031_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_031_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_031_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_031_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_031_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_031_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_031_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_031_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_031_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_031_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_031_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_032_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_032_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_032_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_032_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_032_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_032_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_032_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_032_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_032_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_032_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_032_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_032_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_033_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_033_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_033_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_033_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_033_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_033_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_033_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_033_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_033_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_033_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_033_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_033_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_034_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_034_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_034_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_034_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_034_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_034_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_034_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_034_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_034_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_034_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_034_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_034_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_035_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_035_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_035_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_035_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_035_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_035_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_035_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_035_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_035_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_035_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_035_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_035_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_036_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_036_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_036_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_036_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_036_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_036_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_036_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_036_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_036_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_036_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_036_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_036_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_037_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_037_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_037_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_037_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_037_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_037_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_037_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_037_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_037_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_037_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_037_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_037_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_038_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_038_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_038_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_038_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_038_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_038_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_038_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_038_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_038_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_038_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_038_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_038_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_039_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_039_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_039_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_039_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_039_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_039_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_039_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_039_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_039_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_039_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_039_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_039_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_040_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_040_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_040_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_040_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_040_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_040_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_040_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_040_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_040_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_040_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_040_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_040_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_041_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_041_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_041_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_041_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_041_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_041_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_041_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_041_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_041_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_041_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_041_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_041_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_042_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_042_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_042_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_042_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_042_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_042_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_042_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_042_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_042_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_042_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_042_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_042_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_043_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_043_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_043_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_043_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_043_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_043_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_043_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_043_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_043_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_043_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_043_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_043_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_044_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_044_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_044_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_044_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_044_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_044_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_044_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_044_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_044_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_044_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_044_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_044_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_045_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_045_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_045_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_045_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_045_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_045_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_045_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_045_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_045_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_045_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_045_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_045_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_046_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_046_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_046_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_046_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_046_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_046_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_046_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_046_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_046_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_046_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_046_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_046_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_047_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_047_06292.raw',...
'/home/data/at15_61/raw/os75/at2010_047_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_047_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_047_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_047_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_047_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_047_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_047_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_047_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_047_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_047_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_047_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_048_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_048_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_048_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_048_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_048_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_048_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_048_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_048_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_048_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_048_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_048_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_048_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_049_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_049_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_049_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_049_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_049_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_049_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_049_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_049_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_049_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_049_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_049_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_049_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_050_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_050_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_050_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_050_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_050_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_050_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_050_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_050_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_050_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_050_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_050_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_050_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_051_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_051_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_051_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_051_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_051_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_051_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_051_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_051_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_051_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_051_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_051_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_051_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_052_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_052_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_052_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_052_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_052_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_052_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_052_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_052_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_052_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_052_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_052_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_052_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_053_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_053_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_053_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_053_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_053_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_053_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_053_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_053_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_053_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_053_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_053_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_053_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_054_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_054_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_054_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_054_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_054_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_054_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_054_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_054_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_054_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_054_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_054_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_054_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_055_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_055_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_055_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_055_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_055_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_055_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_055_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_055_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_055_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_055_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_055_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_055_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_056_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_056_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_056_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_056_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_056_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_056_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_056_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_056_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_056_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_056_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_056_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_056_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_057_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_057_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_057_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_057_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_057_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_057_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_057_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_057_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_057_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_057_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_057_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_057_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_058_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_058_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_058_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_058_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_058_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_058_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_058_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_058_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_058_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_058_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_058_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_058_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_059_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_059_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_059_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_059_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_059_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_059_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_059_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_059_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_059_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_059_64800.raw',...
'/home/data/at15_61/raw/os75/at2010_059_72000.raw',...
'/home/data/at15_61/raw/os75/at2010_059_79200.raw',...
'/home/data/at15_61/raw/os75/at2010_060_00000.raw',...
'/home/data/at15_61/raw/os75/at2010_060_07200.raw',...
'/home/data/at15_61/raw/os75/at2010_060_14400.raw',...
'/home/data/at15_61/raw/os75/at2010_060_21600.raw',...
'/home/data/at15_61/raw/os75/at2010_060_28800.raw',...
'/home/data/at15_61/raw/os75/at2010_060_36000.raw',...
'/home/data/at15_61/raw/os75/at2010_060_43200.raw',...
'/home/data/at15_61/raw/os75/at2010_060_50400.raw',...
'/home/data/at15_61/raw/os75/at2010_060_57600.raw',...
'/home/data/at15_61/raw/os75/at2010_060_64800.raw'};


        % this should start with the most recent profile (from ens_blk*.log)
        % and start there. no need to fiddle with filelists.
        % It is automatically in incremental mode.

        write_ensblk(instclass, files, params,...
            'gbindir', fullfile(gbindirbase, instname),...
            'save_lastens', 1,...
            'hcorr_args', cfg.hcorr_args, ...
            'gyro_msginfo', cfg.best.heading_rule,...
            'ping_headcorr', ping_headcorr, ...
            'num_persistence', num_persistence, ...
            'pingtype', pingtype,  'max_BLKprofiles', 144,   'maxrunsecs', 300,...
            'save_editcfg', 0,...
            'verbose', 0);


     