Changeset 1033 for trunk/src/series/turb_stat.m
- Timestamp:
- Apr 30, 2018, 8:01:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/turb_stat.m
r1032 r1033 114 114 115 115 %% determine the file type on each line from the first input file 116 ImageTypeOptions={'image','multimage','mmreader','video','cine_phantom'};117 116 NcTypeOptions={'netcdf','civx','civdata'}; 118 117 for iview=1:NbView … … 123 122 [FileInfo{iview},MovieObject{iview}]=get_file_info(filecell{iview,1}); 124 123 FileType{iview}=FileInfo{iview}.FileType; 125 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images126 124 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files 127 125 if ~isempty(j1_series{iview}) … … 153 151 % EDIT FROM HERE 154 152 155 %% check the validity of input file types156 if CheckImage{1}157 FileExtOut='.png'; % write result as .png images for image inputs158 elseif CheckNc{1}159 FileExtOut='.nc';% write result as .nc files for netcdf inputs160 else161 msgbox_uvmat('ERROR',['invalid file type input ' FileType{1}])162 return163 end164 165 166 153 %% settings for the output file 154 FileExtOut='.nc';% write result as .nc files for netcdf inputs 167 155 NomTypeOut=nomtype2pair(NomType{1});% determine the index nomenclature type for the output file 168 156 first_i=i1_series{1}(1);
Note: See TracChangeset
for help on using the changeset viewer.