Changeset 380 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jan 29, 2012, 2:31:56 PM (9 years ago)
Author:
sommeria
Message:

reading of civ data, new format, improved: bugs for reading u and v repairedd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r379 r380  
    21032103    set(handles.VelType_1,'Visible','on')
    21042104    set(handles.FixVelType,'Visible','on')
    2105     menu=set_veltype_display(ParamOut.CivStage);
     2105    menu=set_veltype_display(ParamOut.CivStage,FileType);
    21062106    index_menu=strcmp(ParamOut.VelType,menu);%look for VelType in  the menu
    21072107    index_val=find(index_menu,1);
     
    21932193    end
    21942194end
    2195 
    2196 % menu_transform=get(handles.transform_fct,'String');
    21972195choice_value=get(handles.transform_fct,'Value');
    21982196transform_list=get(handles.transform_fct,'UserData');
     
    28072805        set(handles.VelType_1,'Visible','off')
    28082806    end
    2809 %     set_veltype_display([handles.VelType_1 handles.interp1_1 handles.filter1_1 ...
    2810 %             handles.civ2_1 handles.interp2_1 handles.filter2_1],0)
    28112807    if isfield(UvData,'XmlData_1')
    28122808        UvData=rmfield(UvData,'XmlData_1');
     
    30563052%------------------------------------------------------------------------
    30573053% --- set the visibility of relevant velocity type menus:
    3058 function menu=set_veltype_display(Civ)
     3054function menu=set_veltype_display(Civ,FileType)
    30593055%------------------------------------------------------------------------
    30603056if isequal(Civ,0)
     
    30693065    imax=6;
    30703066end
     3067if ~exist('FileType','var')
     3068    FileType='civx';
     3069end
     3070switch FileType
     3071    case 'civx'
    30713072menu={'civ1';'interp1';'filter1';'civ2';'interp2';'filter2'};
     3073    case 'civdata'
     3074    menu={'civ1';'civ-filter1';'filter1';'civ2';'civ-filter2';'filter2'};   
     3075end
    30723076menu=menu(1:imax);
    30733077
Note: See TracChangeset for help on using the changeset viewer.