Changeset 38 for trunk/src/proj_field.m
- Timestamp:
- Mar 7, 2010, 6:30:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r19 r38 241 241 test3D=1; 242 242 end 243 % if length(ivar_U)>1 | length(ivar_V)>1 | length(ivar_W)>1244 % warndlg_uvmat('multiple vector input in proj_field.m','ERROR')245 % return246 % end247 243 if length(ivar_F)>1 | length(ivar_FF)>1 248 warndlg_uvmat('multiple flag input in proj_field.m','ERROR')244 msgbox_uvmat('ERROR','multiple flag input in proj_field.m') 249 245 return 250 end 251 246 end 252 247 for ipoint=1:siz(1) 253 248 Xpoint=ObjectData.Coord(ipoint,:); … … 473 468 Coord{idim}=[0.5 DimValue(idim)]; 474 469 test_direct(idim)=1; 475 % if isfield(FieldData,'VarAttribute')476 % for ivar=VarIndex477 % if length(FieldData.VarAttribute)>=ivar & isfield(FieldData.VarAttribute{ivar},Coord_i_str)% if there is a variable attribute named Coord_1, _2 or _3478 % eval(['Coord_i=FieldData.VarAttribute{ivar}.' Coord_i_str ';']);%'range x479 % if isnumeric(Coord_i)480 % if length(Coord_i)>=2481 % Coord{idim}=[Coord_i(1) Coord_i(end)];482 % %test_direct(idim)=(Coord{idim}(2)>Coord{idim}(1));483 % else484 % warndlg_uvmat(['two values needed for ' Coord_i_str 'in proj_field.m'],'ERROR')485 % return486 % end487 % else488 % warndlg_uvmat(['non numerical coordinate attributes' Coord_i_str 'in proj_field.m'],'ERROR')489 % return490 % end491 % %test_coord(idim)=1;492 % DCoord_min(idim)=(Coord{idim}(end)-Coord{idim}(1))/(DimValue(idim)-1);493 % end494 % end495 % end496 470 end 497 471 AX=linspace(Coord{2}(1),Coord{2}(2),DimValue(2)); … … 1288 1262 test_direct_min=DCoord_min(idim)>0;% =1 for increasing values, 0 otherwise 1289 1263 if ~isequal(test_direct(idim),test_direct_min) 1290 warndlg_uvmat(['non monotonic dimension variable # ' num2str(idim) ' in proj_field.m'],'ERROR')1264 msgbox_uvmat('ERROR',['non monotonic dimension variable # ' num2str(idim) ' in proj_field.m']) 1291 1265 return 1292 1266 end … … 1299 1273 Coord{idim}=[0.5 DimValue(idim)-0.5]; 1300 1274 test_direct(idim)=1; 1301 % for ivar=VarIndex1302 % if isfield(FieldData.VarAttribute{ivar},Coord_i_str)% if there is a variable attribute named Coord_1, _2 or _31303 % eval(['Coord{idim}=FieldData.VarAttribute{ivar}.' Coord_i_str ';']);%'range x1304 % if isnumeric(Coord{idim})1305 % if length(Coord{idim})>=21306 % test_direct(idim)=(Coord{idim}(2)>Coord{idim}(1));1307 % else1308 % warndlg_uvmat(['two values needed for ' Coord_i_str 'in proj_field.m'],'ERROR')1309 % return1310 % end1311 % else1312 % warndlg_uvmat(['non numerical coordinate attributes' Coord_i_str 'in proj_field.m'],'ERROR')1313 % return1314 % end1315 % DCoord_min(idim)=(Coord{idim}(end)-Coord{idim}(1))/(DimValue(idim)-1);1316 % end1317 % end1318 1275 end 1319 1276 end … … 1557 1514 if ~isequal(Phi,0) & length(ivar_U)==1 1558 1515 if isempty(ivar_V) 1559 warndlg_uvmat('v velocity component missing in proj_field.m','ERROR')1516 msgbox_uvmat('ERROR','v velocity component missing in proj_field.m') 1560 1517 return 1561 1518 end
Note: See TracChangeset
for help on using the changeset viewer.