Changeset 483 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jun 26, 2012, 11:50:19 PM (9 years ago)
Author:
sommeria
Message:

civ set to accept automatic input in the absence of PARAM.xml. Still problem with run time address
zoom improved to deal with elongated plots
better link between PIV and images in uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r477 r483  
    30843084FileName=[fullfile(RootPath,SubDir,RootFile) FileIndices FileExt];
    30853085[tild,tild,tild,i1,i2,j1,j2,tild,NomType]=fileparts_uvmat(['xxx' get(handles.FileIndex,'String') FileExt]);
    3086 % NomTypeNew=NomType;%default
    30873086if 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,[]);
    30963089    if ~exist(imagename,'file')
    30973090        [FileName,PathName] = uigetfile( ...
     
    31973190    case 'image'
    31983191        % 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);
    32003194        if ~exist(imagename,'file') % browse for images if it is not found
    32013195            [FileName,PathName] = uigetfile( ...
Note: See TracChangeset for help on using the changeset viewer.