Changeset 343 for trunk/src/read_xls.m
- Timestamp:
- Dec 21, 2011, 10:12:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_xls.m
r19 r343 185 185 testrecord=0;%we have an image series without 'record' subdir 186 186 elseif isequal(Ext,'.png') 187 [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 187 %[Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 188 [~,~,Root]=fileparts_uvmat(fname{ifile}); 188 189 if ~isequal(Root,RootIma)%only one image recorded for each root name 189 190 [t,ImaDocElement]=add(t,DeviceElement,'element','Image'); … … 194 195 testrecord=0;%we have an image series without 'record' subdir 195 196 elseif isequal(Ext,'.nc') 196 [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 197 %[Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 198 [~,~,Root]=fileparts_uvmat(fname{ifile}); 197 199 if ~isequal(Root,RootNc)%only one image recorded for each root name 198 200 [t,ImaDocElement]=add(t,DeviceElement,'element','Ncdata'); … … 240 242 t=attributes(t,'add',ImaDocElement,'source','file'); 241 243 elseif isequal(Ext,'.png') 242 [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 244 % [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 245 [~,~,Root]=fileparts_uvmat(fname{ifile}); 243 246 if ~isequal(Root,RootIma) 244 247 [t,ImaDocElement]=add(t,DeviceElement,'element','Image'); … … 248 251 end 249 252 elseif isequal(Ext,'.nc') 250 [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 253 %[Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 254 [~,~,Root]=fileparts_uvmat(fname{ifile}); 251 255 if ~isequal(Root,RootNc)%only one image recorded for each root name 252 256 [t,ImaDocElement]=add(t,DeviceElement,'element','Ncdata'); … … 290 294 [Path,Name,Ext]=fileparts(fname{ifile}); 291 295 if isequal(Ext,'.xml') 292 [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 296 %[Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 297 [~,~,Root]=fileparts_uvmat(fname{ifile}); 293 298 if ~isequal(Root,RootXml)%only one image recorded for each root name 294 299 [t,ImaDocElement]=add(t,RecordElement,'element','CivDoc'); … … 298 303 end 299 304 elseif isequal(Ext,'.nc') 300 [Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 305 %[Path,Root,field_count,str2,str_a,str_b,ext,nom_type,subdir]=name2display(fname{ifile}); 306 [~,~,Root]=fileparts_uvmat(fname{ifile}); 301 307 if ~isequal(Root,RootNc)%only one image recorded for each root name 302 308 [t,ImaDocElement]=add(t,RecordElement,'element','Ncdata');
Note: See TracChangeset
for help on using the changeset viewer.