Ignore:
Timestamp:
Apr 25, 2010, 9:46:07 PM (14 years ago)
Author:
sommeria
Message:

uvmat;fig: cleaning out of buttons for mask record
view_field, write_plot_param: improve plot by view_field (projection)
uvmat: bug fixing for yellow coloring of buttons, improve switch from velocity to images
find_field_indices: bug fix for NbDim?
name_generator: help comments improved
civ: bugs corrected for BATCH button colouring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_indices.m

    r19 r85  
    1818%      .discrete: like scalar, but set of data points without continuity, represented as dots in a usual plot, instead of continuous lines otherwise
    1919%      .scalar: scalar field (default)
    20 
     20%
    2121%   
    2222%INPUT:
     
    7272    testnewcell=1;
    7373    for icell_prev=1:numel(CellVarIndex)%detect whether the dimensions of ivar fit with an existing cell
    74         PrevVarIndex=CellVarIndex{icell_prev};
    75         PrevDimName=Data.VarDimName{PrevVarIndex(1)};
     74        PrevVarIndex=CellVarIndex{icell_prev};%list of variable indices in cell # icell_prev
     75        PrevDimName=Data.VarDimName{PrevVarIndex(1)};%list of corresponding variable names
    7676        if isequal(PrevDimName,DimCell)
    7777            CellVarIndex{icell_prev}=[CellVarIndex{icell_prev} ivar];% add variable index #ivar to the cell #icell_prev
     
    154154    end
    155155    NbDim(icell)=0;% nbre of space dimensions
    156     if ~isempty(ivar_coord_z)
    157         NbDim(icell)=3;
    158     elseif ~isempty(ivar_coord_y)
    159         NbDim(icell)=2;
    160     elseif ~isempty(ivar_coord_x)
    161         NbDim(icell)=1;
    162     end
    163            
     156    if numel(VarIndex)>1
     157        if ~isempty(ivar_coord_z)
     158            NbDim(icell)=3;
     159        elseif ~isempty(ivar_coord_y)
     160            NbDim(icell)=2;
     161        elseif ~isempty(ivar_coord_x)
     162            NbDim(icell)=1;
     163        end
     164    end
    164165    % look at coordinates variables 
    165166    coord=zeros(1,numel(DimCell));%default
Note: See TracChangeset for help on using the changeset viewer.