Ignore:
Timestamp:
Jan 16, 2012, 12:51:23 AM (12 years ago)
Author:
sommeria
Message:

fgunctions under series adapted to the renovated GUI series

File:
1 edited

Legend:

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

    r361 r374  
    11%'check_files': check the existence and status of the files selected by series.fig
    22%------------------------------------------------------------------------
    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)
    44%
    55%OUTPUT
     
    1313%Series: Matlab structure containing information set by the series interface
    1414%
    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);
     15function GUI_input=check_data_files(Param) %(filecell,filecell_1,num_i,num_j,vel_type,field,param);
    1616%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1717 %detect the chosen series of files and check their date of modification:
     
    4242end
    4343
    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
     46if ischar(Param) && ~isempty(find(regexp('Param','.xml$')))
     47    Param=xml2struct(Param);
     48else %  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');
     51end
     52[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
     53
    4754
    4855%%%%%%%%%%%%%%%%%%%%%%%%
    4956
    5057% 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
     58NbSlice=Param.NbSlice;
     59if isempty(NbSlice),NbSlice=1; end; %default
    5760
     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);
    5867% 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);
     68count=0; 
     69nbview=length(RootFile);
     70
    6971for iview=1:nbview
    7072    filebase=fullfile(Series.RootPath{iview},Series.RootFile{iview});%root file name
Note: See TracChangeset for help on using the changeset viewer.