Ignore:
Timestamp:
Mar 7, 2013, 1:47:51 PM (11 years ago)
Author:
sommeria
Message:

bugs corrected for combining fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r576 r580  
    205205VarDimName=Data.VarDimName(~check_select);%dimensions of remaining variables
    206206check_coord_select= cellfun(@numel,VarDimName)==1|cellfun(@ischar,VarDimName)==1;% find remaining variables with a single dimension
    207 check_coord(~check_select)=check_coord_select;
    208 ListCoordIndex=ivar_remain(check_coord);% indices of remaining variables with a single dimension
    209 ListCoordName=Data.ListVarName(ListCoordIndex);% corresponding names of remaining variables with a single dimension
    210 ListDimName=Data.VarDimName(ListCoordIndex);% dimension names of remaining variables with a single dimension
     207%check_coord(~check_select)=check_coord_select;
     208ListCoordIndex=ivar_remain(check_coord_select);% indices of remaining variables with a single dimension
     209ListCoordName=ListVarName(check_coord_select);% corresponding names of remaining variables with a single dimension
     210ListDimName=VarDimName(check_coord_select);% dimension names of remaining variables with a single dimension
    211211
    212212%remove redondant variables -> keep only one variable per dimension
     
    222222    end
    223223end
    224 ListCoordIndex=ListCoordIndex(check_keep);% list of coordinate variable indices
     224ListCoordIndex=ListCoordIndex(check_coord_select);% list of coordinate variable indices
    225225ListCoordName=ListCoordName(check_keep);% list of coordinate variable names
    226226ListDimName=ListDimName(check_keep);% list of coordinate dimension names
Note: See TracChangeset for help on using the changeset viewer.