Ignore:
Timestamp:
Apr 13, 2010, 10:37:08 AM (14 years ago)
Author:
sommeria
Message:

several bug repairs:
option movie backward introduced for uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_get_field.m

    r80 r81  
    201201            SubVarAttribute{nbvar}.Role='coord_y';%abcissa with unstructured coordinates
    202202        end
    203         if isequal(dimname_y,dimname_x)
    204             errormsg='identical x and y coordinates selected in get_field';
    205             return
    206         end
     203%         if isequal(dimname_y,dimname_x)
     204%             errormsg='identical x and y coordinates selected in get_field';
     205%             return
     206%         end
    207207    end
    208208
     
    465465    end
    466466    ind_single=find(npxy==1);
    467     SingleCellA=[SingleCellA DimCellA(ind_single)];
     467    if ~isempty(ind_single)
     468    %SingleCellA=[SingleCellA DimCellA(ind_single)];TO CHECK
     469    end
    468470    ind_select=find(npxy~=1);%look for non singleton dimensions
    469471    DimCellA=DimCellA(ind_select);
     
    515517    dimextra(dimA)=[]; %list of unselected dimension indices
    516518    DimCellA=DimCellA([dimA dimextra]);
    517     eval(['SubField.' VarNameA '=permute(squeeze(SubField.' VarNameA '),[dimA dimextra]);'])
     519   % eval(['SubField.' VarNameA '=permute(squeeze(SubField.' VarNameA '),[dimA dimextra]);'])TO CHECK
    518520    SubField.VarDimName{VarSubIndexA}=DimCellA; 
    519521    %add default coord_x and/or coord_y if empty
Note: See TracChangeset for help on using the changeset viewer.