Ignore:
Timestamp:
May 2, 2014, 10:49:00 PM (10 years ago)
Author:
sommeria
Message:

bug corrected for civ2 with dt2 non equal to Dt1
cleaning of time_series

File:
1 edited

Legend:

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

    r751 r768  
    113113ImageTypeOptions={'image','multimage','mmreader','video'};
    114114NcTypeOptions={'netcdf','civx','civdata'};
     115FileType=cell(1,nbview);
     116FileInfo=cell(1,nbview);
     117MovieObject=cell(1,nbview);
     118CheckImage=cell(1,nbview);
     119CheckNc=cell(1,nbview);
     120frame_index=cell(1,nbview);
    115121for iview=1:nbview
    116122    if ~exist(filecell{iview,1}','file')
     
    119125    end
    120126    [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1});
     127    if strcmp(FileType{iview},'civdata')||strcmp(FileType{iview},'civx')
     128        if ~isfield(Param.InputFields,'VelType')
     129            FileType{iview}='netcdf';% civ data read as usual netcdf files
     130        end
     131    end
    121132    CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images
    122133    CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files
    123     if ~isempty(j1_series{iview})
     134    if isempty(j1_series{iview})
     135        frame_index{iview}=i1_series{iview};
     136    else
    124137        frame_index{iview}=j1_series{iview};
    125     else
    126         frame_index{iview}=i1_series{iview};
    127138    end
    128139end
     
    130141%% calibration data and timing: read the ImaDoc files
    131142[XmlData,NbSlice_calib,time,errormsg]=read_multimadoc(RootPath,SubDir,RootFile,FileExt,i1_series,i2_series,j1_series,j2_series);
     143if ~isempty(errormsg)
     144    disp_uvmat('ERROR',['error in reading xmlfile: ' errormsg],checkrun)
     145    return
     146end
    132147if size(time,1)>1
    133148    diff_time=max(max(diff(time)));
Note: See TracChangeset for help on using the changeset viewer.