Changeset 1153 for trunk/src/uvmat.m
- Timestamp:
- Jul 5, 2024, 9:00:14 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1152 r1153 2878 2878 set(handles.CheckMask,'Value',0) 2879 2879 end 2880 2880 2881 [MaskPath,MaskName,MaskExt]=fileparts(MaskFullName); 2881 [tild,tild,MaskFile,i1_series,i2_series,j1_series,j2_series,MaskNomType]=find_file_series(MaskPath,[MaskName MaskExt],0); 2882 if ~(isempty(i2_series) && isempty(j2_series)) 2883 MaskNomType='*'; 2884 end 2885 end 2886 Mask.Path=MaskPath; 2887 if isempty(MaskFile) 2888 Mask.File=''; 2889 elseif ischar(MaskFile) 2890 Mask.File=MaskFile; 2891 else 2892 Mask.File=MaskFile{1}; 2893 end 2894 Mask.NbSlice_i=1; 2895 Mask.NbSlice_j=1; 2896 if isempty(j1_series) 2897 if isempty(i1_series) 2898 MaskNomType='*'; 2899 else 2900 Mask.NbSlice_i=i1_series(1,2,end); 2901 end 2902 else 2903 Mask.NbSlice_j=j1_series(1,end,2); 2904 end 2905 Mask.Ext=MaskExt; 2906 Mask.NomType=MaskNomType; 2882 [tild,tild,MaskFile,i1_series,i2,j1,j2,MaskNomType]=find_file_series(MaskPath,[MaskName MaskExt],0); 2883 if strcmp(NomType,'_1') 2884 NbSlice=i1_series(1,2,end); 2885 set(handles.num_NbSlice,'String',num2str(NbSlice)) 2886 end 2887 end 2888 % Mask.Path=MaskPath; 2889 % if isempty(MaskFile) 2890 % Mask.File=''; 2891 % elseif ischar(MaskFile) 2892 % Mask.File=MaskFile; 2893 % else 2894 % Mask.File=MaskFile{1}; 2895 % end 2896 % Mask.NbSlice_i=1; 2897 % Mask.NbSlice_j=1; 2898 % if isempty(j1_series) 2899 % if isempty(i1_series) 2900 % MaskNomType='*'; 2901 % else 2902 % Mask.NbSlice_i=i1_series(1,2,end); 2903 % end 2904 % else 2905 % Mask.NbSlice_j=j1_series(1,end,2); 2906 % end 2907 % Mask.Ext=MaskExt; 2908 % Mask.NomType=MaskNomType; 2907 2909 set(handles.CheckMask,'UserData',Mask); 2908 2910 errormsg=update_mask(handles); … … 4946 4948 %------------------------------------------------------------------------ 4947 4949 % --- set the visibility of relevant velocity type menus: 4948 function menu=set_veltype_display(Civ ,FileType)4950 function menu=set_veltype_display(CivStage,FileType) 4949 4951 %------------------------------------------------------------------------ 4950 4952 if ~exist('FileType','var') … … 4952 4954 end 4953 4955 imin=1; 4956 if CivStage>=6 4957 CivStage=6; 4958 end 4954 4959 switch FileType 4955 4960 case 'civx' 4956 4961 menu={'civ1';'interp1';'filter1';'civ2';'interp2';'filter2'}; 4957 if isequal(Civ ,0)4962 if isequal(CivStage,0) 4958 4963 imax=0; 4959 elseif isequal(Civ ,1) || isequal(Civ,2)4964 elseif isequal(CivStage,1) || isequal(CivStage,2) 4960 4965 imax=1; 4961 elseif isequal(Civ ,3)4966 elseif isequal(CivStage,3) 4962 4967 imax=3; 4963 elseif isequal(Civ ,4) || isequal(Civ,5)4968 elseif isequal(CivStage,4) || isequal(CivStage,5) 4964 4969 imax=4; 4965 elseif isequal(Civ ,6) %patch24970 elseif isequal(CivStage,6) %patch2 4966 4971 imax=6; 4967 4972 end 4968 4973 case {'civdata','pivdata_fluidimage'} 4969 menu={'civ1';'filter1';'civ2';'filter2' ;'civ3';'filter3'};4974 menu={'civ1';'filter1';'civ2';'filter2'}; 4970 4975 imax=[0 1 1 2 3 3 4 5 5 6]; 4971 imax=imax(min(Civ+1,10)); 4972 % if isequal(Civ,0) 4973 % imax=0; 4974 % elseif isequal(Civ,1) || isequal(Civ,2) 4975 % imax=1; 4976 % elseif isequal(Civ,3) 4977 % imax=2; 4978 % elseif isequal(Civ,4) || isequal(Civ,5) 4979 % imax=3; 4980 % elseif Civ==6 %patch2 4981 % imax=4; 4982 % else 4983 % imax=4;imin=3; 4984 % end 4976 imax=imax(min(CivStage+1,10)); 4985 4977 end 4986 4978 menu=menu(imin:imax);
Note: See TracChangeset
for help on using the changeset viewer.