Changeset 1100 for trunk/src/proj_field.m
- Timestamp:
- Apr 23, 2021, 4:59:15 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r1098 r1100 1125 1125 icell_grid=[];% field cell index which defines the grid 1126 1126 icell_scattered=[];% field cell index which defines fields with scattered coordinates 1127 for icell=1:numel(CellInfo) 1128 if strcmp(ObjectData.ProjMode,'interp_lin')&& ~strcmp(ProjMode{icell},'interp_tps') 1129 errormsg='ProjMode interp_tps needed '; 1130 return 1131 end 1132 end 1127 1133 if strcmp(ObjectData.ProjMode,'projection') 1128 1134 %% case of a grid requested by the input field … … 1130 1136 if isfield(CellInfo{icell},'ProjModeRequest') 1131 1137 switch CellInfo{icell}.ProjModeRequest 1132 %case 'interp_lin'1133 %ProjMode{icell}='interp_lin';1138 case 'interp_lin' 1139 ProjMode{icell}='interp_lin'; 1134 1140 case 'interp_tps' 1135 1141 ProjMode{icell}='interp_tps'; … … 1236 1242 continue % only cells represnting 2D or 3D fields are involved 1237 1243 end 1244 % if isfield(CellInfo{icell},'ProjModeRequest') && ~strcmp(CellInfo{icell}.ProjModeRequest,ProjMode{icell}) 1245 % msgbox_uvmat('ERROR',['ProjMode ' CellInfo{icell}.ProjModeRequest ' needed']) 1246 % return 1247 % end 1238 1248 VarIndex= CellInfo{icell}.VarIndex;% indices of the selected variables in the list FieldData.ListVarName 1239 1249 %dimensions … … 1247 1257 VarAttribute={};% initiate coresponding list of var attributes for cell # icell 1248 1258 %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1249 check3D=(numel(CellInfo{icell}.CoordIndex)==3); 1250 switch CellInfo{icell}.CoordType 1259 check3D=(numel(CellInfo{icell}.CoordIndex)==3); 1260 switch CellInfo{icell}.CoordType 1251 1261 case 'scattered' 1252 1262 %% case of input fields with unstructured coordinates (applies for projMode ='projection' or 'interp_lin')
Note: See TracChangeset
for help on using the changeset viewer.