Ignore:
Timestamp:
May 10, 2014, 12:50:36 AM (10 years ago)
Author:
sommeria
Message:

bug corrected in sub_background. test_patch1 introduced in civ_series

File:
1 edited

Legend:

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

    r716 r774  
    102102        NbSlice=Param.IndexRange.NbSlice;
    103103    end
    104     %nbview=numel(i1_series);%number of input file series (lines in InputTable)
    105     nbfield_j=size(i1_series{1},1); %nb of fields for the j index (bursts or volume slices)%A CORRIGER !!!!!!!
    106     nbfield_i=size(i1_series{1},2); %nb of fields for the i index
     104    incr_j=1;%default
     105    if isfield(Param.IndexRange,'incr_j')&&~isempty(Param.IndexRange.incr_j)
     106        incr_j=Param.IndexRange.incr_j;
     107    end
     108    if isempty(first_j)||isempty(last_j)
     109        nbfield_j=1;
     110    else
     111        nbfield_j=numel(first_j:incr_j:last_j);%nb of fields for the j index (bursts or volume slices)
     112    end
     113    incr_i=1;%default
     114    first_i=1;last_i=1;incr_i;%default
     115    if isfield(Param.IndexRange,'first_i'); last_i=Param.IndexRange.first_i; end   
     116    if isfield(Param.IndexRange,'last_i'); last_i=Param.IndexRange.last_j; end
     117    if isfield(Param.IndexRange,'incr_i')&&~isempty(Param.IndexRange.incr_i)
     118        incr_i=Param.IndexRange.incr_i;
     119    end
     120    nbfield_i=numel(first_i:incr_i:last_i);%nb of fields for the i index (bursts or volume slices)
    107121    nbfield=nbfield_j*nbfield_i; %total number of fields
    108122    nbfield_i=floor(nbfield/NbSlice);%total number of  indexes in a slice (adjusted to an integer number of slices)
     
    175189NomType=Param.InputTable(:,4);
    176190FileExt=Param.InputTable(:,5);
     191hdisp=disp_uvmat('WAITING...','checking the file series',checkrun);
    177192[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
     193if ~isempty(hdisp),delete(hdisp),end;
    178194%%%%%%%%%%%%
    179195    % The cell array filecell is the list of input file names, while
Note: See TracChangeset for help on using the changeset viewer.