Changeset 317 for trunk/src/civ.m


Ignore:
Timestamp:
Dec 5, 2011, 7:48:37 PM (9 years ago)
Author:
sommeria
Message:

bug repaired in name2display (names in _000001) and civ.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r316 r317  
    2323%TODO: search range
    2424
    25 % Last Modified by GUIDE v2.5 04-Dec-2011 08:42:47
     25% Last Modified by GUIDE v2.5 04-Dec-2011 18:52:13
    2626% Begin initialization code - DO NOT EDIT
    2727gui_Singleton = 1;
     
    43404340civ2.pixcmy='1';
    43414341civ2.convectFlow='n';
     4342
     4343
     4344% --- Executes on button press in TestPatch1.
     4345function TestPatch1_Callback(hObject, eventdata, handles)
     4346set(handles.TestPatch1,'BackgroundColor',[1 1 0])
     4347drawnow
     4348if get(handles.TestPatch1,'Value')
     4349    ref_i=str2double(get(handles.ref_i,'String'));
     4350    if strcmp(get(handles.ref_j,'Visible'),'on')
     4351        ref_j=str2double(get(handles.ref_j,'String'));
     4352    else
     4353        ref_j=1;%default
     4354    end
     4355    [filecell,i1,i21,j1,j2,i1_civ2,i2_civ2,j1_civ2,j2_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=...
     4356        set_civ_filenames(handles,ref_i,ref_j,[0 0 1 0 0 0]);
     4357   
     4358    Data.ListVarName={'ny','nx','A'};
     4359    Data.VarDimName= {'ny','nx',{'ny','nx'}};
     4360
     4361    Param=read_GUI(handles.civ)
     4362    Param.CheckOutputFile=0;
     4363    [Data,errormsg]=civ_matlab(Param,filecell.nc.civ1{1})% get the grid of x, y positions set for PIV
     4364    if ~isempty(errormsg)
     4365        msgbox_uvmat('ERROR',Data.Txt)
     4366        return
     4367    end
     4368    set(handles.TestCiv1,'BackgroundColor',[1 0 0])
     4369else
     4370    corrfig=findobj(allchild(0),'tag','corrfig');% look for a current figure for image correlation display
     4371    if ~isempty(corrfig)
     4372        delete(corrfig)
     4373    end
     4374    hview_field=findobj(allchild(0),'tag','view_field');% look for view_field   
     4375    if ~isempty(hview_field)
     4376        delete(hview_field)
     4377    end
     4378end
     4379
Note: See TracChangeset for help on using the changeset viewer.