Changeset 1024 for trunk/src/proj_field.m
- Timestamp:
- Dec 24, 2017, 9:50:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r1009 r1024 1113 1113 1114 1114 %% group the variables (fields of 'FieldData') in cells of variables with the same dimensions 1115 1115 1116 [CellInfo,NbDimArray,errormsg]=find_field_cells(FieldData); 1116 1117 … … 1119 1120 return 1120 1121 end 1122 1121 1123 check_grid=zeros(size(CellInfo));% =1 if a grid is needed , =0 otherwise, for each field cell 1122 1123 1124 ProjMode=cell(size(CellInfo)); 1124 1125 for icell=1:numel(CellInfo) 1125 1126 ProjMode{icell}=ObjectData.ProjMode;% projection mode of the plane object 1126 1127 end 1127 1128 icell_grid=[];% field cell index which defines the grid 1128 1129 if ~strcmp(ObjectData.ProjMode,'projection')&& ~strcmp(ObjectData.Type,'plane_z')% TODO:rationalize 1129 1130 %% define the new coordinates in case of interpolation on a imposed grid … … 1154 1155 check_grid(icell)=1; 1155 1156 end 1156 if strcmp(CellInfo{icell}.CoordType,'grid') &&NbDimArray(icell)>=21157 if strcmp(CellInfo{icell}.CoordType,'grid') && NbDimArray(icell)>=2 1157 1158 if ~testangle && isempty(icell_grid)% if the input gridded data is not modified, choose the first one in case of multiple gridded field cells 1158 1159 icell_grid=icell;
Note: See TracChangeset
for help on using the changeset viewer.