Changeset 756 for trunk/src/get_field.m
- Timestamp:
- Apr 28, 2014, 8:05:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r754 r756 587 587 test_coord=zeros(size(Field.Display.VarDimName)); %=1 when variable #ilist is eligible as structured coordiante 588 588 dim_var=Field.Display.VarDimName{scalar_index};%list of dimensions of the selected variable 589 if ~get(handles.CheckDimensionX,'Value') || ~get(handles.CheckDimensionY,'Value')589 if ~get(handles.CheckDimensionX,'Value') 590 590 %look for coordinate variables among the other variables 591 591 for ilist=1:numel(Field.Display.VarDimName) … … 990 990 MenuIndex=get(handles.TimeName,'Value'); 991 991 string=get(handles.TimeName,'String'); 992 TimeName='';%default 993 if ~isempty(string)&&iscell(string) 992 994 TimeName=string{MenuIndex}; 995 end 993 996 switch index 994 997 case 1 … … 1001 1004 AttrName=Field.ListGlobalAttribute{attr_index}; 1002 1005 set(handles.TimeUnit,'String',Field.(AttrName)) 1006 else 1007 set(handles.TimeUnit,'String','') 1003 1008 end 1004 1009 case {3 ,4}
Note: See TracChangeset
for help on using the changeset viewer.