Changeset 55 for trunk/src/get_field.m


Ignore:
Timestamp:
Mar 17, 2010, 10:26:41 AM (11 years ago)
Author:
sommeria
Message:

-use of a single parameter file PARAM.xml (instead of PARAM_WIN and PARAM_LINUX).
-correction of a bug for opening an existing projection object
-manual editing of vectors made available with the builtin netcdf tool.
-bug fix for reading netcdf files with the builtin netcdf tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r38 r55  
    228228for icell=1:numel(CellVarIndex)
    229229    VarIndex=CellVarIndex{icell};
    230     if ~isempty(find(VarIndex==yindex)) && (isempty(VarType{icell}.coord_x)||~isequal(VarType{icell}.coord_x,VarIndex))
     230    if ~isempty(find(VarIndex==yindex,1)) && (isempty(VarType{icell}.coord_x)||~isequal(VarType{icell}.coord_x,VarIndex))
    231231        cell_select=icell;
    232232        break
     
    237237set(handles.abscissa,'Value',min(val,2));
    238238coord_x_index=VarType{cell_select}.coord;
    239 coord_x_index=coord_x_index(find(coord_x_index));
     239coord_x_index=coord_x_index(coord_x_index~=0);
    240240set(handles.abscissa,'String',[{''}; (Field.ListVarName(coord_x_index))'; (Field.ListVarName(VarIndex))'])
    241241% Field.VarIndex.y=yindex;
     
    12451245%default setting for the visibility of the GUI elements*
    12461246if ~isequal(ACTION,'PLOT')
    1247     varargout=feval(ACTION)% input list asked by the selected function
     1247    varargout=feval(ACTION);% input list asked by the selected function
    12481248    test_1Dplot=[];
    12491249    test_scalar=[];
     
    12531253                           %RootFile always visible
    12541254            case 'check_1Dplot'   
    1255                  test_1Dplot=isequal(lower(varargout{ilist,2}),'y')
     1255                 test_1Dplot=isequal(lower(varargout{ilist,2}),'y');
    12561256            case 'check_scalar'
    1257                  test_scalar=isequal(lower(varargout{ilist,2}),'y')    
     1257                 test_scalar=isequal(lower(varargout{ilist,2}),'y');   
    12581258            case 'check_vector'   
    1259                  test_vector=isequal(lower(varargout{ilist,2}),'y')
     1259                 test_vector=isequal(lower(varargout{ilist,2}),'y');
    12601260        end
    12611261    end
     
    14491449set(handles.MenuFile_5,'Label',MenuFile_5)
    14501450dir_perso=prefdir;
    1451 profil_perso=fullfile(dir_perso,'uvmat_perso.mat')
     1451profil_perso=fullfile(dir_perso,'uvmat_perso.mat');
     1452display(profil_perso)
    14521453if exist(profil_perso,'file')
    14531454    save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
Note: See TracChangeset for help on using the changeset viewer.