Changeset 374 for trunk/src/series/check_data_files.m
- Timestamp:
- Jan 16, 2012, 12:51:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/check_data_files.m
r361 r374 1 1 %'check_files': check the existence and status of the files selected by series.fig 2 2 %------------------------------------------------------------------------ 3 % function GUI_input=check_ files(num_i1,num_i2,num_j1,num_j2,Series)3 % function GUI_input=check_data_files(num_i1,num_i2,num_j1,num_j2,Series) 4 4 % 5 5 %OUTPUT … … 13 13 %Series: Matlab structure containing information set by the series interface 14 14 % 15 function GUI_input=check_ files(num_i1_cell,num_i2_cell,num_j1_cell,num_j2_cell,Series) %(filecell,filecell_1,num_i,num_j,vel_type,field,param);15 function GUI_input=check_data_files(Param) %(filecell,filecell_1,num_i,num_j,vel_type,field,param); 16 16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17 17 %detect the chosen series of files and check their date of modification: … … 42 42 end 43 43 44 %standard parameters for waitbar and STOP action (do not modify) 45 hseries=guidata(Series.hseries);%handles of the GUI series 46 WaitbarPos=get(hseries.waitbar_frame,'Position'); 44 %% input parameters 45 % read the xml file for batch case 46 if ischar(Param) && ~isempty(find(regexp('Param','.xml$'))) 47 Param=xml2struct(Param); 48 else % RUN case: parameters introduced as the input structure Param 49 hseries=guidata(Param.hseries);%handles of the GUI series 50 WaitbarPos=get(hseries.waitbar_frame,'Position'); 51 end 52 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 53 47 54 48 55 %%%%%%%%%%%%%%%%%%%%%%%% 49 56 50 57 % number of slices 51 % NbSlice=str2num(get(hseries.NbSlice,'String')); 52 % if isempty(NbSlice) 53 % NbSlice=1; 54 NbSlice=Series.IndexRange.NbSlice 55 NbSlice_name=num2str(Series.IndexRange.NbSlice); 56 if isequal(NbSlice,[]),NbSlice=1; end; %default 58 NbSlice=Param.NbSlice; 59 if isempty(NbSlice),NbSlice=1; end; %default 57 60 61 %% root input file and type 62 RootPath=Param.InputTable(:,1); 63 RootFile=Param.InputTable(:,3); 64 SubDir=Param.InputTable(:,2); 65 NomType=Param.InputTable(:,4); 66 FileExt=Param.InputTable(:,5); 58 67 % number of views 59 count=0; 60 testcell=iscell(Series.RootFile); 61 if ~testcell 62 Series.RootPath={Series.RootPath}; 63 Series.RootFile={Series.RootFile}; 64 Series.SubDir={Series.SubDir}; 65 Series.FileExt={Series.FileExt}; 66 Series.NomType={Series.NomType}; 67 end 68 nbview=length(Series.RootFile); 68 count=0; 69 nbview=length(RootFile); 70 69 71 for iview=1:nbview 70 72 filebase=fullfile(Series.RootPath{iview},Series.RootFile{iview});%root file name
Note: See TracChangeset
for help on using the changeset viewer.