

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

        
            % begin "matcfgstr" string, created by run_lastensq.py
            instclass = os;
            instname  = 'os75';
            pingtype  = 'nb';
            proc_yearbase  = 2011;
            yearbase  = 2011;
            cfg =get_uhdascfg('cfgbase'  , 'TN265',...
                              'cfgpath'  , '/home/data/TN265/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'};

        % 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;

        %%====


        % 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/TN265/raw/os75/tt2011_148_06961.raw',...
'/home/data/TN265/raw/os75/tt2011_148_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_148_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_148_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_148_24061.raw',...
'/home/data/TN265/raw/os75/tt2011_148_43256.raw',...
'/home/data/TN265/raw/os75/tt2011_148_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_148_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_148_59934.raw',...
'/home/data/TN265/raw/os75/tt2011_148_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_148_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_148_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_149_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_149_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_149_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_149_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_149_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_149_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_149_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_149_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_149_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_149_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_149_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_149_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_150_25045.raw',...
'/home/data/TN265/raw/os75/tt2011_150_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_150_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_150_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_150_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_150_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_150_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_150_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_150_82053.raw',...
'/home/data/TN265/raw/os75/tt2011_151_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_151_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_151_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_151_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_151_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_151_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_151_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_151_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_151_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_151_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_151_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_151_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_152_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_152_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_152_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_152_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_152_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_152_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_152_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_152_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_152_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_152_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_152_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_152_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_153_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_153_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_153_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_153_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_153_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_153_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_153_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_153_50254.raw',...
'/home/data/TN265/raw/os75/tt2011_153_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_153_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_153_62031.raw',...
'/home/data/TN265/raw/os75/tt2011_153_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_153_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_153_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_154_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_154_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_154_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_154_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_154_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_154_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_154_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_154_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_154_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_154_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_154_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_154_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_155_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_155_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_155_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_155_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_155_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_155_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_155_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_155_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_155_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_155_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_155_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_155_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_156_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_156_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_156_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_156_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_156_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_156_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_156_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_156_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_156_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_156_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_156_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_156_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_157_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_157_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_157_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_157_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_157_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_157_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_157_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_157_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_157_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_157_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_157_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_157_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_158_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_158_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_158_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_158_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_158_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_158_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_158_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_158_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_158_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_158_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_158_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_158_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_159_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_159_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_159_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_159_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_159_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_159_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_159_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_159_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_159_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_159_61096.raw',...
'/home/data/TN265/raw/os75/tt2011_159_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_159_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_159_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_160_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_160_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_160_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_160_18056.raw',...
'/home/data/TN265/raw/os75/tt2011_160_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_160_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_160_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_160_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_160_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_160_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_160_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_160_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_160_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_161_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_161_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_161_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_161_15189.raw',...
'/home/data/TN265/raw/os75/tt2011_161_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_161_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_161_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_161_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_161_49715.raw',...
'/home/data/TN265/raw/os75/tt2011_161_50383.raw',...
'/home/data/TN265/raw/os75/tt2011_161_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_161_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_161_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_161_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_161_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_162_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_162_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_162_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_162_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_162_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_162_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_162_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_162_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_162_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_162_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_162_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_162_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_163_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_163_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_163_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_163_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_163_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_163_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_163_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_163_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_163_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_163_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_163_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_163_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_164_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_164_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_164_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_164_18983.raw',...
'/home/data/TN265/raw/os75/tt2011_164_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_164_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_164_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_164_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_164_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_164_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_164_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_164_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_164_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_165_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_165_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_165_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_165_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_165_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_165_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_165_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_165_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_165_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_165_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_165_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_165_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_166_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_166_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_166_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_166_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_166_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_166_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_166_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_166_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_166_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_166_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_166_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_166_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_167_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_167_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_167_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_167_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_167_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_167_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_167_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_167_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_167_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_167_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_167_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_167_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_168_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_168_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_168_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_168_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_168_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_168_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_168_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_168_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_168_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_168_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_168_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_168_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_169_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_169_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_169_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_169_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_169_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_169_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_169_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_169_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_169_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_169_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_169_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_169_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_170_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_170_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_170_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_170_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_170_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_170_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_170_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_170_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_170_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_170_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_170_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_170_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_171_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_171_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_171_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_171_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_171_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_171_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_171_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_171_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_171_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_171_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_171_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_171_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_172_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_172_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_172_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_172_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_172_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_172_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_172_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_172_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_172_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_172_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_172_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_172_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_173_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_173_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_173_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_173_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_173_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_173_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_173_43200.raw',...
'/home/data/TN265/raw/os75/tt2011_173_50400.raw',...
'/home/data/TN265/raw/os75/tt2011_173_57600.raw',...
'/home/data/TN265/raw/os75/tt2011_173_64800.raw',...
'/home/data/TN265/raw/os75/tt2011_173_72000.raw',...
'/home/data/TN265/raw/os75/tt2011_173_79200.raw',...
'/home/data/TN265/raw/os75/tt2011_174_00000.raw',...
'/home/data/TN265/raw/os75/tt2011_174_07200.raw',...
'/home/data/TN265/raw/os75/tt2011_174_14400.raw',...
'/home/data/TN265/raw/os75/tt2011_174_21600.raw',...
'/home/data/TN265/raw/os75/tt2011_174_28800.raw',...
'/home/data/TN265/raw/os75/tt2011_174_36000.raw',...
'/home/data/TN265/raw/os75/tt2011_174_43200.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);


     