Ignore:
Timestamp:
Apr 5, 2013, 1:17:53 PM (11 years ago)
Author:
sommeria
Message:

bugs corrected to get an advancement bar with status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sub_background.m

    r599 r605  
    5656%% input preparation mode (no RUN)
    5757if isstruct(Param) && isequal(Param.Action.RUN,0)
    58     ParamOut.AllowInputSort='off';...% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
    59     ParamOut.WholeIndexRange='on';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
    60     ParamOut.NbSlice='on'; ...%nbre of slices ('off' by default)
    61     ParamOut.VelType='off';...% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
    62     ParamOut.FieldName='off';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
    63     ParamOut.FieldTransform = 'off';...%can use a transform function
    64     ParamOut.ProjObject='off';...%can use projection object(option 'off'/'on',
    65     ParamOut.Mask='off';...%can use mask option   (option 'off'/'on', 'off' by default)
     58    ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
     59    ParamOut.WholeIndexRange='on';% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
     60    ParamOut.NbSlice='on'; %nbre of slices ('off' by default)
     61    ParamOut.VelType='off';% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
     62    ParamOut.FieldName='off';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
     63    ParamOut.FieldTransform = 'off';%can use a transform function
     64    ParamOut.ProjObject='off';%can use projection object(option 'off'/'on',
     65    ParamOut.Mask='off';%can use mask option   (option 'off'/'on', 'off' by default)
    6666    ParamOut.OutputDirExt='.sback';%set the output dir extension
    67    
     67    ParamOut.OutputFileMode='NbInput';% '=NbInput': 1 output file per input file index, '=NbInput_i': 1 file per input file index i, '=NbSlice': 1 file per slice
     68    filecell=get_file_series(Param);%check existence of the first input file
    6869    %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%%
    6970   
    7071    %% root input file(s) and type
    71 %     RootPath=Param.InputTable(:,1);
    72 %     RootFile=Param.InputTable(:,3);
    73 %     SubDir=Param.InputTable(:,2);
    74 %     NomType=Param.InputTable(:,4);
    75 %     FileExt=Param.InputTable(:,5);
    7672    [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
     73    if ~exist(filecell{1,1},'file')
     74        msgbox_uvmat('WARNING','the first input file does not exist')
     75        return
     76    end
    7777    %%%%%%%%%%%%
    7878    % The cell array filecell is the list of input file names, while
Note: See TracChangeset for help on using the changeset viewer.