Changeset 107 for trunk/src/get_field.m


Ignore:
Timestamp:
Jul 26, 2010, 11:20:39 PM (14 years ago)
Author:
sommeria
Message:

aver_stat and time_series: bug repairs for reading images, for time series, the projection of images on a line now works
get_field: various bug repairs, export field on work space activated
struct2nc and struct2nc_toolbox.m: small bug repaired
nomtype2pair: test on string input introduced to avoid error
cell2tab: test on multiline input introduced
civ: pb about cell repair (bug with recent versions of matlab)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r89 r107  
    784784function RUN_Callback(hObject, eventdata, handles)
    785785%---------------------------------------------------------
    786 %path_get_field=fileparts(which('get_field'));
    787 %list=get(handles.ACTION,'String');
    788786index=get(handles.ACTION,'Value');
    789 % ACTION=list{index};
    790787list_func=get(handles.ACTION,'UserData');
    791788h_fun=list_func{index};
    792 % %hselect_field=get(handles.inputfile,'parent');%handle of the get_field interface
    793 % fct_path=list_path{index}; %path stored for the function ACTION
    794 % if ~isequal(fct_path,path_get_field)
    795 %     addpath(fct_path)% add the prescribed path if not the current one
    796 % end
    797 % eval(['h_fun=@' ACTION ';'])
    798 % if ~isequal(fct_path,path_get_field)
    799 %      rmpath(fct_path)% add the prescribed path if not the current one   
    800 % end
    801789set(handles.RUN,'BackgroundColor',[0.831 0.816 0.784])
    802790drawnow
     
    10261014            if isfield(Field, Field.ListGlobalAttribute{iline})
    10271015                eval(['val=Field.' Field.ListGlobalAttribute{iline} ';'])
    1028                 if ischar(val);
     1016                if ischar(val);% attribute value is char string
    10291017                    Tabcell{iline,2}=val;
    1030                 else
     1018                elseif size(val,1)==1 %attribute value is a number or matlab vector
    10311019                    Tabcell{iline,2}=num2str(val);
    10321020                end
     
    14581446% --------------------------------------------------------------------
    14591447function MenuExportField_Callback(hObject, eventdata, handles)
    1460 
     1448global Data_get_field
     1449% huvmat=findobj(allchild(0),'Name','uvmat');
     1450inputfile=get(handles.inputfile,'String');
     1451Data_get_field=nc2struct(inputfile);
     1452% Data_view_field=UvData.ProjField_2;
     1453evalin('base','global Data_get_field')%make CurData global in the workspace
     1454display(['content of ' inputfile ':'])
     1455evalin('base','Data_get_field') %display CurData in the workspace
     1456commandwindow;
    14611457
    14621458% --------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.