Ignore:
Timestamp:
Jun 22, 2012, 3:45:06 PM (12 years ago)
Author:
sommeria
Message:

several bugs corrected
introductyion of functions find_imadoc and read_multimadoc which simplifiy the functions under series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r468 r469  
    5656switch FileType
    5757    case 'multimage'
    58 %    NomType='*';
    59 %    i1_series=(1:FileInfo.NbFrame)';
    60     NbFrame=FileInfo.NbFrame;
     58    NbFrame=FileInfo.NumberOfFrames;
    6159    case {'video','mmreader'}
    6260    NomType='*';
    6361    NbFrame=FileInfo.NumberOfFrames;
    64 %     i1_series=(1:FileInfo.NumberOfFrames)';
    6562end
    66 % if strcmp( FileType,'multimage')||strcmp( FileType,'video')||strcmp( FileType,'mmreader')
    67 %     NomType='*';
    68 %     i1_series=(1:FileInfo.NumberOfFrames)';
    69 % end
     63
    7064RootFile_i='';
    7165NomTypePref='';
     
    9185        end
    9286        if ~isempty(rr)
    93             RootFile_i=[RootFile rr.i1];
    94            % checkpair=~isempty(regexp(NomType,'-','once'))||~isempty(regexp(NomType,'ab$','once'))||~isempty(regexp(NomType,'AB$','once'));%case of PIV results
    95             if exist(fullfile(RootPath,SubDir,[RootFile_i '.xml']),'file') || exist(fullfile(RootPath,[RootFile_i '.xml']),'file')
     87            RootFile_i=[RootFile rr.i1];% new root file
     88            if exist(fullfile(RootPath,SubDir,[RootFile_i '.xml']),'file') || (strcmp(FileExt,'.nc') && exist(fullfile(RootPath,[RootFile_i '.xml']),'file'))
    9689                RootFile=RootFile_i;
    9790                NomTypePref=r.tiretnum;
Note: See TracChangeset for help on using the changeset viewer.