

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

        
            % begin "matcfgstr" string, created by run_lastensq.py
            instclass = os;
            instname  = 'os75';
            pingtype  = 'nb';
            proc_yearbase  = 2009;
            yearbase  = 2009;
            cfg =get_uhdascfg('cfgbase'  , 'kn195_8',...
                              'cfgpath'  , '/home/data/kn195_8/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 = 'posmv';              % this should be obsolete, but here for constistency
        % this is what is used. see get_rbinheading.m :
           %%====> quick_adcp.py overrriding:
 cfg.hcorr_args = {'posmv', 'pmv', 'acc_heading_cutoff', 0.020};

        % 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/kn195_8/raw/os75/kn2009_123_00521.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_123_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_124_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_125_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_126_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_127_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_128_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_129_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_130_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_131_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_132_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_133_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_134_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_135_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_136_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_137_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_138_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_139_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_140_84815.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_141_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_142_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_66319.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_143_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_144_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_145_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_146_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_50400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_57600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_64800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_72000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_147_79200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_00000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_07200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_14400.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_21600.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_28800.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_36000.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_43200.raw',...
'/home/data/kn195_8/raw/os75/kn2009_148_50400.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);


     