Changeset 756 for trunk/src/get_field.m


Ignore:
Timestamp:
Apr 28, 2014, 8:05:56 AM (10 years ago)
Author:
sommeria
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r754 r756  
    587587test_coord=zeros(size(Field.Display.VarDimName)); %=1 when variable #ilist is eligible as structured coordiante
    588588dim_var=Field.Display.VarDimName{scalar_index};%list of dimensions of the selected variable
    589 if ~get(handles.CheckDimensionX,'Value')  || ~get(handles.CheckDimensionY,'Value')
     589if ~get(handles.CheckDimensionX,'Value') 
    590590    %look for coordinate variables among the other variables
    591591    for ilist=1:numel(Field.Display.VarDimName)
     
    990990MenuIndex=get(handles.TimeName,'Value');
    991991string=get(handles.TimeName,'String');
     992TimeName='';%default
     993if ~isempty(string)&&iscell(string)
    992994TimeName=string{MenuIndex};
     995end
    993996switch index
    994997    case 1
     
    10011004            AttrName=Field.ListGlobalAttribute{attr_index};
    10021005            set(handles.TimeUnit,'String',Field.(AttrName))
     1006        else
     1007            set(handles.TimeUnit,'String','')
    10031008        end
    10041009    case {3 ,4}
Note: See TracChangeset for help on using the changeset viewer.