Changeset 170


Ignore:
Timestamp:
Jan 4, 2011, 7:45:02 PM (13 years ago)
Author:
sommeria
Message:

cleaning of documentation

Location:
trunk/src/get_field
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field/FFT.m

    r93 r170  
     1% 'FFT': calculate and display spectrum of the field selected in the GUI  get_field
     2%  GUI_input=FFT(hget_field)
     3%
     4% OUTPUT:
     5% GUI_input: option for display in the GUI get_field
     6%
     7%INPUT:
     8% hget_field: handles of the GUI get_field
     9%
     10
    111function GUI_input=FFT(hget_field)
    212global spec x_vec
     
    919%initiation
    1020hhget_field=guidata(hget_field);
    11 % testinterp=0;
    1221abscissa_list=get(hhget_field.abscissa,'String');
    1322val=get(hhget_field.abscissa,'Value');
     
    1827val=val(1); %take only the first variable in the list
    1928
    20 %ordinate_name=Field.ListVarName{val};
    2129ordinate_name=ordinate_list{val};
    2230
     
    2937% get variable
    3038eval(['Var= Field.' ordinate_name ';']);
    31 np=size(Var)
     39np=size(Var);
    3240np_freq=floor(np(1)/2);
    3341dx=1;%default
     
    5967list_fig=get(hhget_field.list_fig,'String');
    6068val=get(hhget_field.list_fig,'Value');
    61 hfig=str2num(list_fig{val})% chosen figure number from tyhe GUI
     69hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI
    6270if isempty(hfig)
    6371    hfig=figure;
  • trunk/src/get_field/PLOT.m

    r105 r170  
     1% 'PLOT.m': standar  display function for the the GUI  get_field
     2%  GUI_input=PLOT(hget_field)
     3%
     4% OUTPUT:
     5% GUI_input: option for display in the GUI get_field
     6%
     7%INPUT:
     8% hget_field: handles of the GUI get_field
     9%
     10
    111%---------------------------------------------------------
    212% --- Executes on button press in RUN.
     
    818end
    919[SubField,errormsg]=read_get_field(hget_field);
    10 % SubField.VarAttribute{1}
    11 % SubField.VarAttribute{2}
    12 % SubField.VarAttribute{3}
    13 %
    14 % SubField.VarDimName{1}
    15 % SubField.VarDimName{2}
    16 % SubField.VarDimName{3}
    17 
    1820if ~isempty(errormsg)
    1921    msgbox_uvmat('ERROR',['error in read_get_field/PLOT input:' errormsg])
  • trunk/src/get_field/filter_band.m

    r36 r170  
     1% 'filter_band.m': plot a field after band filtering in the GUI get_field
     2%  GUI_input=filter_band(hget_field)
     3%
     4% OUTPUT:
     5% GUI_input: option for display in the GUI get_field
     6%
     7%INPUT:
     8% hget_field: handles of the GUI get_field
     9%
    110function filter_band(Field,hget_field)
    211
     
    1019   lineNo=1;
    1120   answer=inputdlg(prompt,dlgTitle,lineNo,def);
    12 period=round(str2num(answer{1}))
     21period=round(str2num(answer{1}));
    1322filt_vector=ones(1,period)/period;% averaging vector
    14 VarName_y=Field.ListVarName(VarIndex.y)
     23VarName_y=Field.ListVarName(VarIndex.y);
    1524% hfig
    1625if isempty(str2num(hfig))
Note: See TracChangeset for help on using the changeset viewer.