Changeset 592 for trunk/src/series/aver_stat.m
- Timestamp:
- Mar 25, 2013, 6:34:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r585 r592 48 48 49 49 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName 50 if ~exist('Param','var') % case with no input parameter 51 ParamOut={'AllowInputSort';'off';...% allow alphabetic sorting of the list of input files (options 'off'/'on', 'off' by default) 52 'WholeIndexRange';'off';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default) 53 'NbSlice';'on'; ...%nbre of slices ('off' by default) 54 'VelType';'two';...% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) 55 'FieldName';'two';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) 56 'FieldTransform'; 'on';...%can use a transform function 57 'ProjObject';'on';...%can use projection object(option 'off'/'on', 58 'Mask';'off';...%can use mask option (option 'off'/'on', 'off' by default) 59 'OutputDirExt';'.stat';...%set the output dir extension 60 ''}; 61 return 50 if isstruct(Param) && isequal(Param.Action.RUN,0) 51 ParamOut.AllowInputSort='off';...% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) 52 ParamOut.WholeIndexRange='off';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default) 53 ParamOut.NbSlice='on'; ...%nbre of slices ('off' by default) 54 ParamOut.VelType='two';...% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) 55 ParamOut.FieldName='two';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) 56 ParamOut.FieldTransform = 'on';...%can use a transform function 57 ParamOut.ProjObject='on';...%can use projection object(option 'off'/'on', 58 ParamOut.Mask='off';...%can use mask option (option 'off'/'on', 'off' by default) 59 ParamOut.OutputDirExt='.stat';%set the output dir extension 60 return 62 61 end 63 62 64 63 %%%%%%%%%%%% STANDARD PART %%%%%%%%%%%% 65 %% select different modes, RUN, parameter input, BATCH66 % BATCH case: read the xml file for batch case 64 %% read input parameters from an xml file if input is a file name (batch mode) 65 checkrun=1; 67 66 if ischar(Param) 68 Param=xml2struct(Param); 69 checkrun=0; 70 % RUN case: parameters introduced as the input structure Param 71 else 72 if isfield(Param,'Specific')&& strcmp(Param.Specific,'?') 73 checkrun=1;% will only search interactive input parameters (preparation of BATCH mode) 74 else 75 checkrun=2; % indicate the RUN option is used 76 end 77 hseries=guidata(Param.hseries);%handles of the GUI series 78 end 67 Param=xml2struct(Param);% read Param as input file (batch case) 68 checkrun=0; 69 end 70 71 79 72 ParamOut=Param; %default output 80 73 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; … … 158 151 end 159 152 NomTypeOut='_1-2_1';% output file index will indicate the first and last ref index in the series 160 if checkrun==1 161 return % stop here for input checks 162 end 153 163 154 164 155 %% Set field names and velocity types … … 188 179 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 189 180 for index=index_slice 190 if checkrun191 update_waitbar(hseries.Waitbar,index/(nbfield))192 stopstate=get(hseries.RUN,'BusyAction');193 else194 stopstate='queue';195 end181 if checkrun 182 stopstate=get(Param.RUNHandle,'BusyAction'); 183 update_waitbar(Param.WaitbarHandle,index/nbfield) 184 else 185 stopstate='queue'; 186 end 196 187 if isequal(stopstate,'queue')% enable STOP command 197 188 … … 240 231 241 232 %% calculate tps coefficients if needed 242 if isfield(Param .ProjObject,'ProjMode')&& strcmp(Param.ProjObject.ProjMode,'interp_tps')233 if isfield(Param,'ProjObject')&&isfield(Param.ProjObject,'ProjMode')&& strcmp(Param.ProjObject.ProjMode,'interp_tps') 243 234 Field=tps_coeff_field(Field,check_proj_tps); 244 235 end
Note: See TracChangeset
for help on using the changeset viewer.