Changeset 1197 for trunk/src/get_field.m


Ignore:
Timestamp:
Mar 11, 2026, 5:31:25 PM (3 days ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r1196 r1197  
    627627var_component=find(test_component);% list of variable indices elligible as unstructured coordinates
    628628var_coord=find(test_coord);% % list of variable indices elligible as gridded coordinates
    629 % index_coord=[];
    630 % index_component=[];
    631 % for iscalar=1:numel(scalar_index)
    632 %     index_component=[index_component find(var_component==scalar_index(iscalar),1)];
    633 %     index_coord=[index_coord find(var_coord==scalar_index(iscalar),1)];
    634 % end
    635 % var_component(index_component)=[];
    636 % var_coord(index_coord)=[];
    637629ListCoord=Field.Display.ListVarName([var_coord var_component]);
    638 %coord_val=zeros(size(ListCoord));
     630
    639631
    640632%% set default selection for grid coordinates
     
    903895function Coord_x_Callback(hObject, DimCell, handles)
    904896
    905 index=get(handles.Coord_x,'Value');
    906897string=get(handles.Coord_x,'String');
    907 VarName=string{index};
     898VarName=string{get(handles.Coord_x,'Value')};
    908899if ~ischar(DimCell)% no dimension as input
    909900    update_field(handles,VarName)% update the display of the variable 'VarName' and its dimensions in the general list of variables
    910901end
    911 if isequal(get(handles.FieldOption,'Value'),1)
     902MenuFieldOption=get(handles.FieldOption,'String');
     903FieldOption=MenuFieldOption{get(handles.FieldOption,'Value')};
     904if strcmp(FieldOption,'1D_plot')
    912905    set_coord_y_options(handles,VarName)
    913906end
Note: See TracChangeset for help on using the changeset viewer.