Changeset 768 for trunk/src/series/time_series.m
- Timestamp:
- May 2, 2014, 10:49:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r751 r768 113 113 ImageTypeOptions={'image','multimage','mmreader','video'}; 114 114 NcTypeOptions={'netcdf','civx','civdata'}; 115 FileType=cell(1,nbview); 116 FileInfo=cell(1,nbview); 117 MovieObject=cell(1,nbview); 118 CheckImage=cell(1,nbview); 119 CheckNc=cell(1,nbview); 120 frame_index=cell(1,nbview); 115 121 for iview=1:nbview 116 122 if ~exist(filecell{iview,1}','file') … … 119 125 end 120 126 [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 121 132 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 122 133 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 124 137 frame_index{iview}=j1_series{iview}; 125 else126 frame_index{iview}=i1_series{iview};127 138 end 128 139 end … … 130 141 %% calibration data and timing: read the ImaDoc files 131 142 [XmlData,NbSlice_calib,time,errormsg]=read_multimadoc(RootPath,SubDir,RootFile,FileExt,i1_series,i2_series,j1_series,j2_series); 143 if ~isempty(errormsg) 144 disp_uvmat('ERROR',['error in reading xmlfile: ' errormsg],checkrun) 145 return 146 end 132 147 if size(time,1)>1 133 148 diff_time=max(max(diff(time)));
Note: See TracChangeset
for help on using the changeset viewer.