Changeset 507 for trunk/src/find_imadoc.m
- Timestamp:
- Jul 29, 2012, 11:18:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_imadoc.m
r469 r507 13 13 XmlFileName=[fullfile(RootPath,SubDirBase) '.xml'];%new convention: xml at the level of the image folder 14 14 if ~exist(XmlFileName,'file') 15 if strcmp(FileExt,'.nc') 16 basexml=fullfile(RootPath,RootFile) ; % old convention: xml inside the image folder, case of civ files 17 else 18 basexml=fullfile(RootPath,SubDir,RootFile) ; % old convention: xml inside the image folder, case of images 19 end 20 XmlFileName=[basexml '.xml']; 15 XmlFileName=[fullfile(RootPath,SubDirBase,RootFile) '.xml']; % old convention: xml inside the image folder, case of images or new civ files 21 16 if ~exist(XmlFileName,'file') 22 XmlFileName=[basexml '.civ']; % very old convention: .civ file 23 if ~exist(XmlFileName,'file') 24 XmlFileName=''; 17 XmlFileName=[fullfile(RootPath,SubDirBase,RootFile) '.civ']; % very old convention: .civ file 18 if ~exist(XmlFileName,'file') && strcmp(FileExt,'.nc') 19 XmlFileName=[fullfile(RootPath,RootFile) '.xml'] ; % old convention: xml inside the image folder, old civ file opened 20 if ~exist(XmlFileName,'file') 21 XmlFileName=[fullfile(RootPath,RootFile) '.civ']; % very old convention: .civ file 22 end 25 23 end 26 24 end 27 25 end 26 if ~exist(XmlFileName,'file') 27 XmlFileName=''; 28 end
Note: See TracChangeset
for help on using the changeset viewer.