- Timestamp:
- Jun 2, 2022, 11:34:28 AM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_civdata.m
r1107 r1117 222 222 var={}; 223 223 switch vel_type 224 case 'civ1' 225 var={'X','Y','Z','U','V','W','C','F','FF';... 226 'Civ1_X','Civ1_Y','Civ1_Z','Civ1_U','Civ1_V','Civ1_W','Civ1_C','Civ1_F','Civ1_FF'}; 227 role={'coord_x','coord_y','coord_z','vector_x','vector_y','vector_z','ancillary','warnflag','errorflag'}; 228 % units={'pixel','pixel','pixel','pixel','pixel','pixel','','',''}; 229 case 'filter1' 230 var={'X','Y','Z','U','V','W','C','F','FF','Coord_tps','U_tps','V_tps','W_tps','SubRange','NbCentre','NbCentre','NbCentre';... 231 'Civ1_X','Civ1_Y','Civ1_Z','Civ1_U_smooth','Civ1_V_smooth','Civ1_W','Civ1_C','Civ1_F','Civ1_FF',... 224 case{'civ1','civ2','civ3'} 225 varout={'X','Y','Z','U','V','W','C','F','FF'}; 226 varin= {'Civ1_X','Civ1_Y','Civ1_Z','Civ1_U','Civ1_V','Civ1_W','Civ1_C','Civ1_F','Civ1_FF'}; 227 role={'coord_x','coord_y','coord_z','vector_x','vector_y','vector_z','ancillary','warnflag','errorflag'}; 228 case{'filter1','filter2','filter3'} 229 varout={'X','Y','Z','U','V','W','C','F','FF','Coord_tps','U_tps','V_tps','W_tps','SubRange','NbCentre','NbCentre','NbCentre'}; 230 varin={'Civ1_X','Civ1_Y','Civ1_Z','Civ1_U_smooth','Civ1_V_smooth','Civ1_W','Civ1_C','Civ1_F','Civ1_FF',... 232 231 'Civ1_Coord_tps','Civ1_U_tps','Civ1_V_tps','Civ1_W_tps','Civ1_SubRange','Civ1_NbCentre','Civ1_NbCentres','Civ1_NbSites'}; 233 232 role={'coord_x','coord_y','coord_z','vector_x','vector_y','vector_z','ancillary','warnflag','errorflag','coord_tps','vector_x_tps',... 234 233 'vector_y_tps','vector_z_tps','ancillary','ancillary','ancillary','ancillary'}; 235 % rmq: NbCentres and NbSites obsolete replaced by NbCentre, kept for consistency with previous data 236 case 'civ2' 237 var={'X','Y','Z','U','V','W','C','F','FF';... 238 'Civ2_X','Civ2_Y','Civ2_Z','Civ2_U','Civ2_V','Civ2_W','Civ2_C','Civ2_F','Civ2_FF'}; 239 role={'coord_x','coord_y','coord_z','vector_x','vector_y','vector_z','ancillary','warnflag','errorflag'}; 240 case 'filter2' 241 var={'X','Y','Z','U','V','W','C','F','FF','Coord_tps','U_tps','V_tps','W_tps','SubRange','NbCentre','NbCentre','NbCentre';... 242 'Civ2_X','Civ2_Y','Civ2_Z','Civ2_U_smooth','Civ2_V_smooth','Civ2_W','Civ2_C','Civ2_F','Civ2_FF',... 243 'Civ2_Coord_tps','Civ2_U_tps','Civ2_V_tps','','Civ2_SubRange','Civ2_NbCentre','Civ2_NbCentres','Civ2_NbSites'}; 244 role={'coord_x','coord_y','coord_z','vector_x','vector_y','vector_z','ancillary','warnflag','errorflag','coord_tps','vector_x_tps',... 245 'vector_y_tps','vector_z_tps','ancillary','ancillary','ancillary','ancillary'}; 246 end 234 % rmq: NbCentres and NbSites obsolete replaced by NbCentre, kept for consistency with previous data 235 end 236 switch vel_type 237 case {'civ2','filter2'} 238 varin=regexprep(varin,'1','2'); 239 case {'civ3','filter3'} 240 varin=regexprep(varin,'1','3'); 241 end 242 var=[varout;varin]; 247 243 if ~strcmp(ProjModeRequest,'interp_tps') 248 244 var=var(:,1:9);%suppress tps if not needed -
trunk/src/uvmat.m
r1112 r1117 4989 4989 end 4990 4990 case {'civdata','pivdata_fluidimage'} 4991 menu={'civ1';'filter1';'civ2';'filter2'}; 4992 if isequal(Civ,0) 4993 imax=0; 4994 elseif isequal(Civ,1) || isequal(Civ,2) 4995 imax=1; 4996 elseif isequal(Civ,3) 4997 imax=2; 4998 elseif isequal(Civ,4) || isequal(Civ,5) 4999 imax=3; 5000 elseif Civ==6 %patch2 5001 imax=4; 5002 else 5003 imax=4;imin=3; 5004 end 4991 menu={'civ1';'filter1';'civ2';'filter2';'civ3';'filter3'}; 4992 imax=[0 1 1 2 3 3 4 5 5 6]; 4993 imax=imax(Civ+1); 4994 % if isequal(Civ,0) 4995 % imax=0; 4996 % elseif isequal(Civ,1) || isequal(Civ,2) 4997 % imax=1; 4998 % elseif isequal(Civ,3) 4999 % imax=2; 5000 % elseif isequal(Civ,4) || isequal(Civ,5) 5001 % imax=3; 5002 % elseif Civ==6 %patch2 5003 % imax=4; 5004 % else 5005 % imax=4;imin=3; 5006 % end 5005 5007 end 5006 5008 menu=menu(imin:imax);
Note: See TracChangeset
for help on using the changeset viewer.