Ignore:
Timestamp:
Mar 29, 2013, 9:03:29 PM (11 years ago)
Author:
sommeria
Message:

steps further to use series with cluster. Some bsolete functions removed

File:
1 edited

Legend:

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

    r594 r595  
    8989% i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices
    9090%%%%%%%%%%%%
    91 NbSlice=1;%default
    92 if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)
    93     NbSlice=Param.IndexRange.NbSlice;
    94 end
     91% NbSlice=1;%default
     92% if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)
     93%     NbSlice=Param.IndexRange.NbSlice;
     94% end
    9595nbview=numel(i1_series);%number of input file series (lines in InputTable)
    9696nbfield_j=size(i1_series{1},1); %nb of fields for the j index (bursts or volume slices)
    9797nbfield_i=size(i1_series{1},2); %nb of fields for the i index
    9898nbfield=nbfield_j*nbfield_i; %total number of fields
    99 nbfield_i=floor(nbfield/NbSlice);%total number of  indexes in a slice (adjusted to an integer number of slices)
    100 nbfield=nbfield_i*NbSlice; %total number of fields after adjustement
     99%nbfield_i=floor(nbfield/NbSlice);%total number of  indexes in a slice (adjusted to an integer number of slices)
     100%nbfield=nbfield_i*NbSlice; %total number of fields after adjustement
    101101
    102102%determine the file type on each line from the first input file
     
    173173
    174174%% MAIN LOOP ON SLICES
    175 for i_slice=1:NbSlice
    176     index_slice=i_slice:NbSlice:nbfield;% select file indices of the slice
     175% for i_slice=1:NbSlice
     176   % index_slice=i_slice:NbSlice:nbfield;% select file indices of the slice
    177177    nbfiles=0;
    178178    nbmissing=0;
    179179
    180180    %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%%
    181     for index=index_slice
     181    for index=1:nbfield
     182    %for index=index_slice
    182183          if checkrun
    183184                stopstate=get(Param.RUNHandle,'BusyAction');
     
    305306   
    306307    %writting the result file
    307     OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end),i_slice,[]);
     308    OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end),j1_series{1}(1),j1_series{1}(end));
    308309    if CheckImage{1} %case of images
    309310        if isequal(FileInfo{1}.BitDepth,16)||(numel(FileInfo)==2 &&isequal(FileInfo{2}.BitDepth,16))
     
    324325        end
    325326    end  % end averaging  loop
    326 end
     327% end
    327328%%%%%%%%%%%%%%%% end loop on slices %%%%%%%%%%%%%%%%
    328329
Note: See TracChangeset for help on using the changeset viewer.