Changeset 363 for trunk/src/get_field.m


Ignore:
Timestamp:
Jan 10, 2012, 9:13:31 AM (12 years ago)
Author:
sommeria
Message:

civ2 introduced in civ_matlab (still bugs)
bugs corrected in civ and fill_GUI, read_GUI
comments in get_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r236 r363  
    10751075Field=get(handles.get_field,'UserData');
    10761076index=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
    10771079if isequal(index,1)
    10781080    set(handles.attributes_txt,'String','global attributes')
    1079 % list global TimeAttribute names and values if index=1 (blank TimeVariable display) is selected
    10801081    if isfield(Field,'ListGlobalAttribute') && ~isempty(Field.ListGlobalAttribute)
    10811082        for iline=1:length(Field.ListGlobalAttribute)
     
    10921093        Tabchar=cell2tab(Tabcell,'=');
    10931094    end
     1095%% list Attribute names and values associated to the Variable # index-1   
    10941096else
    1095 %list TimeAttribute names and values associated to the TimeVariable # injdex-1   
    10961097    list_var=get(handles.variables,'String');
    10971098    var_select=list_var{index};
     
    11221123set(handles.attributes,'String',Tabchar);
    11231124
    1124 % update dimensions;
     1125%% update dimensions;
    11251126if isfield(Field,'ListDimName')
    11261127    Tabdim={};%default
     
    11391140            dim_indices=[dim_indices dim_index];
    11401141        end
    1141         %dim_indices=find(dim_list) %removes 0 values
    11421142        set(handles.dimensions_txt,'String', ['dimensions of ' var_select])
    11431143    end
Note: See TracChangeset for help on using the changeset viewer.