Changeset 150 for trunk/src/get_field.m


Ignore:
Timestamp:
Dec 3, 2010, 12:16:51 PM (13 years ago)
Author:
sommeria
Message:

various corrections for plotting and using view_field and get_field. The current field of uvmat or view_field is now stored in the structure userdata.axes3. Introduction of live correlation to test PIV (civ1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r147 r150  
    172172inputfile=get(handles.inputfile,'String');
    173173Field=nc2struct(inputfile);% reads the whole field
     174if isfield(Field,'Txt')
     175    msgbox_uvmat('ERROR',Field.Txt)
     176else
    174177set(handles.figure1,'UserData',Field);
    175178Field_input(eventdata,handles,Field);
     179end
    176180
    177181%------------------------------------------------------------------------
     
    811815
    812816%------------------------------------------------------------------------
     817% --- Function for plotting the current subfield
    813818function plot_get_field(SubField,handles)
    814819%------------------------------------------------------------------------
     
    816821val=get(handles.list_fig,'Value');
    817822if strcmp(list_fig{val},'uvmat')
    818 %     set(handles.figure1,'Name','uvmat_field')
    819823    set(handles.inputfile,'Enable','off')% desactivate the input file edit box   
    820 %     set(handles.list_fig,'Visible','off')%
    821824    set(handles.RUN,'Visible','off')% RUN button not visible (passive mode, get_field used to define the field for uvamt)
    822825    set(handles.MenuOpen,'Visible','off')
     
    826829    view_field(SubField)
    827830else
    828     hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI
    829     if isempty(hfig)
     831    hfig=str2double(list_fig{val});% chosen figure number from tyhe GUI
     832    if isnan(hfig)
    830833        hfig=figure;
    831834        list_fig=[list_fig;num2str(hfig)];
     
    10751078% update dimensions;
    10761079if isfield(Field,'ListDimName')
    1077     Field.ListDimName
    10781080    Tabdim={};%default
    10791081    if isequal(index,1)%list all dimensions
Note: See TracChangeset for help on using the changeset viewer.