Changeset 483 for trunk/src/uvmat.m
- Timestamp:
- Jun 26, 2012, 11:50:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r477 r483 3084 3084 FileName=[fullfile(RootPath,SubDir,RootFile) FileIndices FileExt]; 3085 3085 [tild,tild,tild,i1,i2,j1,j2,tild,NomType]=fileparts_uvmat(['xxx' get(handles.FileIndex,'String') FileExt]); 3086 % NomTypeNew=NomType;%default3087 3086 if isequal(field,'image') 3088 % if isequal(NomType,'_1-2_1')||isequal(NomType,'_1_1-2') 3089 % NomTypeNew='_1_1'; 3090 % elseif isequal(NomType,'#_ab') 3091 % NomTypeNew='#a'; 3092 % elseif isequal(NomType,'_1-2') 3093 % NomTypeNew='_1'; 3094 % end 3095 imagename=fullfile_uvmat(RootPath,SubDir,RootFile,'.png',NomType,i1,[],j1,[]); 3087 SubDirBase=regexprep(SubDir,'\..*','');%take the root part of SubDir, before the first dot '.' 3088 imagename=fullfile_uvmat(RootPath,SubDirBase,RootFile,'.png',NomType,i1,[],j1,[]); 3096 3089 if ~exist(imagename,'file') 3097 3090 [FileName,PathName] = uigetfile( ... … … 3197 3190 case 'image' 3198 3191 % guess the image name corresponding to the current netcdf name (no unique correspondance) 3199 imagename=fullfile_uvmat(RootPath_1,'',RootFile_1,'.png',get(handles.NomType,'String'),i1,[],j1); 3192 SubDirBase=regexprep(SubDir_1,'\..*','');%take the root part of SubDir, before the first dot '.' 3193 imagename=fullfile_uvmat(RootPath_1,SubDirBase,RootFile_1,'.png',get(handles.NomType,'String'),i1,[],j1); 3200 3194 if ~exist(imagename,'file') % browse for images if it is not found 3201 3195 [FileName,PathName] = uigetfile( ...
Note: See TracChangeset
for help on using the changeset viewer.