Changeset 41 for trunk/src/civ.m
- Timestamp:
- Mar 10, 2010, 11:03:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r39 r41 721 721 722 722 %%%%%%%%%%% set the menus of image pairs and default selection for civ %%%%%%%%%%%%%%%%%%% 723 if isequal(nom_type_ima,'_i')| isequal(nom_type_nc,'_i1-i2')|~exist('nbfield2','var')|(nbfield2==1)723 if isequal(nom_type_ima,'_i')|| isequal(nom_type_nc,'_i1-i2')||~(exist('nbfield2','var')&&(nbfield2~=1)) 724 724 set(handles.mode,'String',{'series(Di)'}) 725 725 set(handles.mode,'Value',1) 726 elseif isequal(nom_type_ima,'png_old')| isequal(nom_type_nc,'netc_old')726 elseif isequal(nom_type_ima,'png_old')||isequal(nom_type_nc,'netc_old') 727 727 set(handles.mode,'String',{'pair j1-j2'}) 728 728 set(handles.mode,'Value',1) … … 732 732 else 733 733 set(handles.mode,'String',{'pair j1-j2';'series(Dj)';'series(Di)'})%multiple choice 734 if isequal(mode,'volume') 735 set(handles.mode,'Value',3) 736 elseif nbfield2 <= 5 737 set(handles.mode,'Value',1)% advice 'pair j1-j2' for small bursts 738 else 739 set(handles.mode,'Value',2)% advice series Dj for long bursts, not volume 740 end 734 if nbfield2 <= 5 735 set(handles.mode,'Value',1)% advice 'pair j1-j2' for small burst 736 end 737 % else 738 % if isequal(mode,'volume') 739 % set(handles.mode,'Value',3) 740 % elseif nbfield2 <= 5 741 % set(handles.mode,'Value',1)% advice 'pair j1-j2' for small bursts 742 % else 743 % set(handles.mode,'Value',2)% advice series Dj for long bursts, not volume 744 % end 741 745 end 742 746 … … 1331 1335 list_civ1=get(handles.list_pair_civ1,'String'); 1332 1336 index_civ1=get(handles.list_pair_civ1,'Value'); 1333 [num_i,num_j]=meshgrid(num_i,num_j);1334 1337 str_civ1=list_civ1{index_civ1};%string defining the image pairs for civ1 1335 1338 if isempty(str_civ1)||isequal(str_civ1,'') … … 1457 1460 end 1458 1461 1462 1459 1463 %------------------------------------------------------------------------ 1460 1464 % --- Executes on selection change in list_pair_civ1. … … 1660 1664 [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=... 1661 1665 set_civ_filenames(handles,compare,box_test); 1662 nbfield= size(num1_civ1,2);1663 nbslice=size(num 1_civ1,1);1666 nbfield=numel(num1_civ1); 1667 nbslice=size(num_a_civ1); 1664 1668 1665 1669 if isempty(filecell) … … 2179 2183 [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=... 2180 2184 set_civ_filenames(handles,compare,box_test); 2185 2181 2186 display('files OK, processing...') 2182 nbfield= size(num1_civ1,2);2183 nbslice= size(num1_civ1,1);2187 nbfield=numel(num1_civ1); 2188 nbslice=numel(num_a_civ1); 2184 2189 2185 2190 %GET PARAMETERS: … … 2314 2319 time=get(handles.displ_filebase,'UserData'); %get the set of times 2315 2320 civAll=get(handles.Experimental,'Value'); % Boolean for new civ excution method 2321 'TESTbatch' 2322 size(filecell.nc.civ1) 2323 nbslice 2324 nbfield 2316 2325 for ifile=1:nbfield 2317 2326 for j=1:nbslice … … 2330 2339 end 2331 2340 % filecell.nc.civ1 2332 filename_cmx= cell2mat(filecell.nc.civ1(ifile,j));%output netcdf file2333 filename_cmx( [end-1:end])='cm';%name of cmx file2341 filename_cmx=filecell.nc.civ1{ifile,j}%output netcdf file 2342 filename_cmx(end-1:end)='cm';%name of cmx file 2334 2343 filename_cmx=[filename_cmx 'x']; 2335 2344 2336 2345 %CIV1 2337 2346 if box_test(1)==1 2338 par_civ1.filename_ima_a= cell2mat(filecell.ima1.civ1(ifile,j));2347 par_civ1.filename_ima_a=filecell.ima1.civ1{ifile,j}; 2339 2348 % par_civ1.filename_ima_a([end-3:end])=[];%remove .png extension 2340 par_civ1.filename_ima_b= cell2mat(filecell.ima2.civ1(ifile,j));2349 par_civ1.filename_ima_b=filecell.ima2.civ1{ifile,j}; 2341 2350 % par_civ1.filename_ima_b([end-3:end])=[];%remove .png extension 2342 2351 … … 2741 2750 % .ncA.civ1{i,j}, .ncA.civ2{i,j}; set of nc files for PIV results with camA (then .nc corresponds to camB) 2742 2751 % .st{i,j}; set of nc files for the combined stereo fields 2752 % num1_civ1(i),num2_civ1(i): lists of first and last i indices for civ1 2753 % num_a_civ1(j),num_b_civ1(j): lists of first and last j indices for civ1 2754 % num1_civ2(i),num2_civ2(i): lists of first and last i indices for civ2 2755 % num_a_civ2(j),num_b_civ2(j): lists of first and last j indices for civ2 2756 % nom_type_nc: nomenclature type for velocity files 2757 % file_ref_fix1,file_ref_fix2: reference files possibly used by Fix1 and 2 2743 2758 function [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=... 2744 2759 set_civ_filenames(handles,compare,box_test)
Note: See TracChangeset
for help on using the changeset viewer.