Changeset 428 for trunk/src/sub_field.m
- Timestamp:
- May 19, 2012, 12:38:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sub_field.m
r405 r428 300 300 end 301 301 end 302 if ~testX_1 303 DimCell=[{XName_1_1} {YName_1_1}]; 302 if ~testX_1% if the second field has structured coordinates 303 DimCell={XName_1_1,YName_1_1, {YName_1_1,XName_1_1}}; 304 else 305 DimCell=[DimCell Field_1.VarDimName(ivar_C_1)]; 304 306 end 305 307 SubData.ListVarName=[SubData.ListVarName {XName_1_1} {YName_1_1} {AName_1_1}]; 306 DimCell=[DimCell Field_1.VarDimName(ivar_C_1)]; %(TODO: check for dimension names)307 if testX_1308 % check that a different dimension name is used for the two fields 309 if testX_1% if the second field has unstructured coordinates 308 310 for icell=1:numel(DimCell) 309 311 if isequal(DimCell{icell}{1},SubData.VarDimName{1}{1}) … … 311 313 end 312 314 end 313 end315 end 314 316 SubData.VarDimName=[SubData.VarDimName DimCell]; 315 317 if isfield(Field_1,'VarAttribute')
Note: See TracChangeset
for help on using the changeset viewer.