Changeset 525 for trunk/src/uvmat.m


Ignore:
Timestamp:
Aug 19, 2012, 1:07:24 PM (12 years ago)
Author:
sommeria
Message:

various bug repairs and cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r523 r525  
    993993switch FileType
    994994    case {'civx','civdata'}
    995             [FieldList,ColorList]=calc_field;
    996             set(handles_Fields,'String',[{'image'};FieldList;{'get_field...'}]);%standard menu for civx data
    997             set(handles_Fields,'Value',2) % set menu to 'velocity
    998           %  col_vec=FieldList;
    999            % col_vec(1)=[];%remove 'velocity' option for vector color (must be a scalar)
    1000            set(handles.ColorScalar,'Value',1)
    1001             set(handles.ColorScalar,'String',ColorList)
    1002             set(handles.Vectors,'Visible','on')
    1003             set(handles.Coord_x,'Value',1);
    1004            set(handles.Coord_x,'String',{'X'});
    1005            set(handles.Coord_y,'Value',1);
    1006            set(handles.Coord_y,'String',{'Y'});
     995        [FieldList,ColorList]=calc_field;
     996        set(handles_Fields,'String',[{'image'};FieldList;{'get_field...'}]);%standard menu for civx data
     997        set(handles_Fields,'Value',2) % set menu to 'velocity
     998        set(handles.ColorScalar,'Value',1)
     999        set(handles.ColorScalar,'String',ColorList)
     1000        set(handles.Vectors,'Visible','on')
     1001        set(handles.Coord_x,'Value',1);
     1002        set(handles.Coord_x,'String',{'X'});
     1003        set(handles.Coord_y,'Value',1);
     1004        set(handles.Coord_y,'String',{'Y'});
    10071005    case 'netcdf'
    10081006        set(handles_Fields,'Value',1)
     
    10101008        hget_field=get_field(FileName);
    10111009        hhget_field=guidata(hget_field);
    1012         get_field('RUN_Callback',hhget_field.RUN,[],hhget_field);
    1013 %             set(handles_Fields,'Value',1) % set menu to 'get_field...
    1014 %             set(handles_Fields,'String',{'get_field...'})
    1015 %             col_vec={'get_field...'};
    1016 %
    1017 %         set(handles.ColorScalar,'String',col_vec)
     1010        get_field('RUN_Callback',hhget_field.RUN,[],hhget_field);
    10181011    otherwise
    10191012        set(handles_Fields,'Value',1) % set menu to 'image'
    10201013        set(handles_Fields,'String',{'image'})
    1021                     set(handles.Coord_x,'Value',1);
    1022            set(handles.Coord_x,'String',{'AX'});
    1023            set(handles.Coord_y,'Value',1);
    1024            set(handles.Coord_y,'String',{'AY'});
     1014        set(handles.Coord_x,'Value',1);
     1015        set(handles.Coord_x,'String',{'AX'});
     1016        set(handles.Coord_y,'Value',1);
     1017        set(handles.Coord_y,'String',{'AY'});
    10251018end
    10261019set(handles.uvmat,'UserData',UvData)
Note: See TracChangeset for help on using the changeset viewer.