Changeset 946
- Timestamp:
- Jun 2, 2016, 3:38:25 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_file_info.m
r935 r946 53 53 case {'.seq','.sqb'} 54 54 [A,FileInfo,timestamps,errormsg]=read_rdvision(fileinput,[]); 55 55 case '.h5' 56 hinfo=hdf5info(fileinput); 57 if strcmp(hinfo.GroupHierarchy.Attributes(1).Value.Data,'MultipassPIVResults') 58 FileInfo.FileType='pivdata_fluidimage'; 59 FileInfo.CivStage=6; % A MODIFIER 60 end 56 61 otherwise 57 62 if ~isempty(FileExt)% exclude empty extension -
trunk/src/uvmat.m
r945 r946 2057 2057 (strcmp(FileType,'image')|| strcmp(FileType,'multimage'))%||strcmp(FileType,'civdata')||strcmp(FileType,'civx')) 2058 2058 TimeName='xml'; 2059 elseif strcmp(FileType,'civdata') 2059 elseif strcmp(FileType,'civdata')% ajouter pivdata_fluidimage 2060 2060 TimeName='civdata'; 2061 2061 elseif strcmp(FileType,'civx') … … 2162 2162 %% set default options in menu 'FieldName' 2163 2163 switch FileType 2164 case {'civx','civdata' }2164 case {'civx','civdata','pivdata_fluidimage'} 2165 2165 [FieldList,ColorList]=set_field_list('U','V','C'); 2166 2166 set(handles_Fields,'String',[{'image'};FieldList;{'get_field...'}]);%standard menu for civx data … … 3205 3205 VelType='';%default 3206 3206 switch UvData.FileType{1} 3207 case {'civx','civdata','netcdf' };3207 case {'civx','civdata','netcdf','pivdata_fluidimage'}; 3208 3208 list_fields=get(handles.FieldName,'String');% list menu fields 3209 3209 FieldName= list_fields{get(handles.FieldName,'Value')}; % selected field … … 3388 3388 %% update the display menu for the first velocity type (first menuline) 3389 3389 test_veltype=0; 3390 if (strcmp(UvData.FileType{1},'civx')||strcmp(UvData.FileType{1},'civdata'))&& ~strcmp(FieldName,'get_field...') 3390 if (strcmp(UvData.FileType{1},'civx')||strcmp(UvData.FileType{1},'civdata')||strcmp(UvData.FileType{1},'pivdata_fluidimage'))... 3391 && ~strcmp(FieldName,'get_field...') 3391 3392 test_veltype=1; 3392 3393 set(handles.VelType,'Visible','on') … … 3413 3414 if isempty(FileName_1) 3414 3415 elseif ~test_keepdata_1 3415 if (strcmp(UvData.FileType{2},'civx')||strcmp(UvData.FileType{2},'civdata'))&& ~strcmp(FieldName_1,'get_field...') 3416 if (strcmp(UvData.FileType{2},'civx')||strcmp(UvData.FileType{2},'civdata')||strcmp(UvData.FileType{1},'pivdata_fluidimage'))... 3417 && ~strcmp(FieldName_1,'get_field...') 3416 3418 test_veltype_1=1; 3417 3419 set(handles.VelType_1,'Visible','on') … … 3714 3716 %default settings if vectors not visible 3715 3717 if ~isfield(PlotParam{1},'Vectors') 3716 if strcmp(get(handles.VelType,'Visible'),'on')3717 3718 PlotParam{1}.Vectors.MaxVec=1; 3718 3719 PlotParam{1}.Vectors.MinVec=0; … … 3720 3721 PlotParam{1}.Vectors.ColCode1=0.33; 3721 3722 PlotParam{1}.Vectors.ColCode2=0.66; 3722 PlotParam{1}.Vectors.ColorScalar={' C'};3723 PlotParam{1}.Vectors.ColorScalar={''}; 3723 3724 PlotParam{1}.Vectors.ColorCode= {'rgb'}; 3724 end3725 3725 end 3726 3726 … … 4605 4605 imax=6; 4606 4606 end 4607 case 'civdata'4607 case {'civdata','pivdata_fluidimage'} 4608 4608 menu={'civ1';'filter1';'civ2';'filter2'}; 4609 4609 if isequal(Civ,0)
Note: See TracChangeset
for help on using the changeset viewer.