Changeset 81 for trunk/src/read_get_field.m
- Timestamp:
- Apr 13, 2010, 10:37:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_get_field.m
r80 r81 201 201 SubVarAttribute{nbvar}.Role='coord_y';%abcissa with unstructured coordinates 202 202 end 203 if isequal(dimname_y,dimname_x)204 errormsg='identical x and y coordinates selected in get_field';205 return206 end203 % if isequal(dimname_y,dimname_x) 204 % errormsg='identical x and y coordinates selected in get_field'; 205 % return 206 % end 207 207 end 208 208 … … 465 465 end 466 466 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 468 470 ind_select=find(npxy~=1);%look for non singleton dimensions 469 471 DimCellA=DimCellA(ind_select); … … 515 517 dimextra(dimA)=[]; %list of unselected dimension indices 516 518 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 518 520 SubField.VarDimName{VarSubIndexA}=DimCellA; 519 521 %add default coord_x and/or coord_y if empty
Note: See TracChangeset
for help on using the changeset viewer.