Changeset 363 for trunk/src/get_field.m
- Timestamp:
- Jan 10, 2012, 9:13:31 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r236 r363 1075 1075 Field=get(handles.get_field,'UserData'); 1076 1076 index=get(handles.variables,'Value');%index in the list 'variables' 1077 1078 %% list global TimeAttribute names and values if index=1 (blank TimeVariable display) is selected 1077 1079 if isequal(index,1) 1078 1080 set(handles.attributes_txt,'String','global attributes') 1079 % list global TimeAttribute names and values if index=1 (blank TimeVariable display) is selected1080 1081 if isfield(Field,'ListGlobalAttribute') && ~isempty(Field.ListGlobalAttribute) 1081 1082 for iline=1:length(Field.ListGlobalAttribute) … … 1092 1093 Tabchar=cell2tab(Tabcell,'='); 1093 1094 end 1095 %% list Attribute names and values associated to the Variable # index-1 1094 1096 else 1095 %list TimeAttribute names and values associated to the TimeVariable # injdex-11096 1097 list_var=get(handles.variables,'String'); 1097 1098 var_select=list_var{index}; … … 1122 1123 set(handles.attributes,'String',Tabchar); 1123 1124 1124 % update dimensions;1125 %% update dimensions; 1125 1126 if isfield(Field,'ListDimName') 1126 1127 Tabdim={};%default … … 1139 1140 dim_indices=[dim_indices dim_index]; 1140 1141 end 1141 %dim_indices=find(dim_list) %removes 0 values1142 1142 set(handles.dimensions_txt,'String', ['dimensions of ' var_select]) 1143 1143 end
Note: See TracChangeset
for help on using the changeset viewer.