Changeset 847 for trunk/src/uvmat.m
- Timestamp:
- Jan 15, 2015, 6:05:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r844 r847 4120 4120 % --- read the data displayed for the input rootfile windows (new): TODO use read_GUI 4121 4121 %------------------------------------------------------------------------ 4122 function [RootPath,SubDir,RootFile,FileIndices,FileExt ]=read_file_boxes(handles)4122 function [RootPath,SubDir,RootFile,FileIndices,FileExt,NomType]=read_file_boxes(handles) 4123 4123 4124 4124 InputFile=read_GUI(handles.InputFile); … … 4128 4128 FileIndices=InputFile.FileIndex; 4129 4129 FileExt=InputFile.FileExt; 4130 4130 NomType=InputFile.NomType; 4131 4131 4132 4132 %------------------------------------------------------------------------ … … 4321 4321 4322 4322 %---------------------------------------------------------------- 4323 % --- Executes on menu selection FieldName 4323 % --- Executes on menu selection FieldName_1 4324 4324 function FieldName_1_Callback(hObject, eventdata, handles) 4325 4325 %------------------------------------------------- … … 4468 4468 case 'image' 4469 4469 %% look for image corresponding to civ data 4470 imagename='';4471 4470 if isfield(UvData.Field,'Civ2_ImageA')%get the corresponding input image in the netcdf file 4472 4471 imagename=UvData.Field.Civ2_ImageA; … … 4474 4473 imagename=UvData.Field.Civ1_ImageA; 4475 4474 else 4475 [RootPath,SubDir,RootFile,FileIndex,FileExt]=read_file_boxes(handles); 4476 4476 SubDirBase=regexprep(SubDir,'\..*','');%take the root part of SubDir, before the first dot '.' 4477 imagename=fullfile_uvmat(RootPath,SubDirBase,RootFile,'.png', NomType,i1,[],j1,[]);4477 imagename=fullfile_uvmat(RootPath,SubDirBase,RootFile,'.png','_1',i1,[],j1,[]); 4478 4478 end 4479 4479 if ~exist(imagename,'file')
Note: See TracChangeset
for help on using the changeset viewer.