Changeset 582 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 13, 2013, 12:46:21 AM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r581 r582  
    18441844num_i2=str2num(get(handles.i2,'String'));
    18451845num_j2=stra2num(get(handles.j2,'String'));
     1846imaname_1='';
    18461847if isempty(num_j2)
    1847     if isempty(num_i2)   
    1848         msgbox_uvmat('ERROR', 'a second image index i2 or j2 is needed to show the pair as a movie')
    1849         set(handles.movie_pair,'BackgroundColor',[1 0 0])%paint the command button in red
    1850          set(handles.movie_pair,'Value',0)
    1851         return
     1848    if isempty(num_i2)
     1849        if strcmp(get(handles.j2,'Visible'),'on') %if the j box is visible
     1850            imaname_1=fullfile_uvmat(RootPath,SubDir,RootFile,Ext,NomType,num_i1,[],num_j1+1);
     1851        end
     1852        if exist(imaname_1,'file')
     1853            num_j2=num_j1+1;
     1854            set(handles.j2,'String',num2str(num_j2));
     1855        else
     1856            imaname_1=fullfile_uvmat(RootPath,SubDir,RootFile,Ext,NomType,num_i1+1,[],num_j1);
     1857            if exist(imaname_1,'file')
     1858                num_i2=num_i1+1;
     1859                set(handles.i2,'String',num2str(num_i2));
     1860            else
     1861                msgbox_uvmat('ERROR', 'a second image index i2 or j2 is needed to show the pair as a movie')
     1862                set(handles.movie_pair,'BackgroundColor',[1 0 0])%paint the command button in red
     1863                set(handles.movie_pair,'Value',0)
     1864                return
     1865            end
     1866        end
    18521867    else
    18531868        num_j2=num_j1;%repeat the index i1 by default
     
    30503065%% fill the coordinates and variables from selections in get_field
    30513066if isequal(field,'get_field...')
     3067    ParamIn=[];
    30523068    if strcmp(get(handles.VelType,'Visible'),'on')
    30533069        % we use the civ choice as default input
     
    30603076                 ParamIn.vector_x='Civ1_U';
    30613077                 ParamIn.vector_y='Civ1_V';
     3078                 ParamIn.vec_color='Civ1_C';               
    30623079            case 'filter1'
    30633080                 ParamIn.TimeVarName='Civ1_Time';
     
    30723089                 ParamIn.vector_x='Civ2_U_smooth';
    30733090                 ParamIn.vector_y='Civ2_V_smooth';
     3091                 ParamIn.vec_color='Civ2_C';
    30743092        end
    30753093    end
Note: See TracChangeset for help on using the changeset viewer.