Changeset 236 for trunk/src/civ.m
- Timestamp:
- Apr 12, 2011, 12:12:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r233 r236 819 819 else 820 820 mode_list=get(handles.mode,'String'); 821 if ischar(mode_list) 822 mode_list={mode_list}; 823 end 821 824 mode_value=get(handles.mode,'Value'); 822 825 mode=mode_list{mode_value}; … … 1426 1429 display(errormsg) 1427 1430 msgbox_uvmat('ERROR',errormsg) 1428 elseif isfield(handles,'status') && ~isequal(get(handles.CivAll,'Value'),3)1431 elseif isfield(handles,'status') %&& ~isequal(get(handles.CivAll,'Value'),3) 1429 1432 set(handles.status,'Value',1);%suppress status display 1430 1433 status_Callback(hObject, eventdata, handles) … … 4319 4322 PointCoord(:,1)=reshape(GridX,[],1); 4320 4323 PointCoord(:,2)=reshape(GridY,[],1); 4321 4322 4324 % caluclate velocity data (y and v in indices, reverse to y component) 4323 [xtable ytable utable vtable ctable typevector] = pivlab (image1,image2,ibx2,iby2,isx2,isy2,shiftx,shifty,PointCoord, 1, []); 4324 Data.ListGlobalAttribute={'title','Time','Dt'}; 4325 Data.title='PIVlab'; 4325 [xtable ytable utable vtable ctable F] = pivlab (image1,image2,ibx2,iby2,isx2,isy2,shiftx,shifty,PointCoord, 1, []); 4326 Data.ListGlobalAttribute=[{'Conventions','Program','CivStage'} {'Time','Dt'}]; 4327 Data.Conventions='uvmat/civdata'; 4328 Data.Program='civ_uvmat'; 4329 Data.CivStage=1; 4330 % list_param=fieldnames(Param.Civ1); 4331 % for ilist=1:length(list_param) 4332 % eval(['Data.Civ1_' list_param{ilist} '=Param.Civ1.' list_param{ilist} ';']) 4333 % end 4326 4334 Data.Time=str2double(par_civ1.T0); 4327 4335 Data.Dt=str2double(par_civ1.Dt); 4328 Data.ListVarName={' X','Y','U','V','C','FF'};% cell array containing the names of the fields to record4336 Data.ListVarName={'Civ1_X','Civ1_Y','Civ1_U','Civ1_V','Civ1_C','Civ1_F'};% cell array containing the names of the fields to record 4329 4337 Data.VarDimName={'nbvec','nbvec','nbvec','nbvec','nbvec','nbvec'}; 4330 4338 Data.VarAttribute{1}.Role='coord_x'; … … 4332 4340 Data.VarAttribute{3}.Role='vector_x'; 4333 4341 Data.VarAttribute{4}.Role='vector_y'; 4334 Data.VarAttribute{5}.Role=' errorflag';4335 Data. X=reshape(xtable,[],1);4336 Data. Y=reshape(size(image1,1)-ytable+1,[],1);4337 Data. U=reshape(utable,[],1);4338 Data. V=reshape(-vtable,[],1);4339 Data.C =reshape(ctable,[],1);4340 Data. FF=reshape(~typevector,[],1);4342 Data.VarAttribute{5}.Role='warnflag'; 4343 Data.Civ1_X=reshape(xtable,[],1); 4344 Data.Civ1_Y=reshape(size(image1,1)-ytable+1,[],1); 4345 Data.Civ1_U=reshape(utable,[],1); 4346 Data.Civ1_V=reshape(-vtable,[],1); 4347 Data.Civ1_C=reshape(ctable,[],1); 4348 Data.Civ1_F=reshape(F,[],1); 4341 4349 4342 4350 %------------------------------------------------------------------------ … … 4725 4733 ViewData.CivHandle=handles.civ;% indicate the handle of the civ GUI in view_field 4726 4734 ViewData.axes3.B=imread(filecell.ima2.civ1{1});%store the second image in the UserData of the GUI view_field 4727 ViewData.axes3.X=Data. X; %keep the set of points in memeory4728 ViewData.axes3.Y=Data. Y;4735 ViewData.axes3.X=Data.Civ1_X; %keep the set of points in memeory 4736 ViewData.axes3.Y=Data.Civ1_Y; 4729 4737 set(hview_field,'UserData',ViewData) 4730 4738 corrfig=findobj(allchild(0),'tag','corrfig');% look for a current figure for image correlation display
Note: See TracChangeset
for help on using the changeset viewer.