Changeset 580 for trunk/src/find_field_cells.m
- Timestamp:
- Mar 7, 2013, 1:47:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_field_cells.m
r576 r580 205 205 VarDimName=Data.VarDimName(~check_select);%dimensions of remaining variables 206 206 check_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 dimension209 ListCoordName= Data.ListVarName(ListCoordIndex);% corresponding names of remaining variables with a single dimension210 ListDimName= Data.VarDimName(ListCoordIndex);% dimension names of remaining variables with a single dimension207 %check_coord(~check_select)=check_coord_select; 208 ListCoordIndex=ivar_remain(check_coord_select);% indices of remaining variables with a single dimension 209 ListCoordName=ListVarName(check_coord_select);% corresponding names of remaining variables with a single dimension 210 ListDimName=VarDimName(check_coord_select);% dimension names of remaining variables with a single dimension 211 211 212 212 %remove redondant variables -> keep only one variable per dimension … … 222 222 end 223 223 end 224 ListCoordIndex=ListCoordIndex(check_ keep);% list of coordinate variable indices224 ListCoordIndex=ListCoordIndex(check_coord_select);% list of coordinate variable indices 225 225 ListCoordName=ListCoordName(check_keep);% list of coordinate variable names 226 226 ListDimName=ListDimName(check_keep);% list of coordinate dimension names
Note: See TracChangeset
for help on using the changeset viewer.