Changeset 595 for trunk/src/series


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

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

Location:
trunk/src/series
Files:
2 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
  • trunk/src/series/merge_proj.m

    r592 r595  
    6363
    6464%%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%%
     65
     66
    6567%% read input parameters from an xml file if input is a file name (batch mode)
    6668checkrun=1;
     
    157159end
    158160NomTypeOut=NomType;% output file index will indicate the first and last ref index in the series
    159 if checkrun==1
    160     ParamOut.Specific=[];%no specific parameter
    161     return %stop here for interactive input (option Param.Specific='?')
    162 end
     161% if checkrun==1
     162%     ParamOut.Specific=[];%no specific parameter
     163%     return %stop here for interactive input (option Param.Specific='?')
     164% end
    163165
    164166%% Set field names and velocity types
     
    174176    %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%%
    175177    for index=index_slice
    176  
    177178        if checkrun
    178             update_waitbar(hseries.Waitbar,index/(nbfield))
    179             stopstate=get(hseries.RUN,'BusyAction');
     179            stopstate=get(Param.RUNHandle,'BusyAction');
     180            update_waitbar(Param.WaitbarHandle,index/nbfield)
    180181        else
    181182            stopstate='queue';
    182183        end
    183        
     184        if ~isequal(stopstate,'queue')% enable STOP command
     185            return
     186        end
    184187        %%%%%%%%%%%%%%%% loop on views (input lines) %%%%%%%%%%%%%%%%
    185188        Data=cell(1,nbview);%initiate the set Data
Note: See TracChangeset for help on using the changeset viewer.