Changeset 1134 for trunk/src/get_file_info.m
- Timestamp:
- Apr 19, 2024, 8:21:23 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_file_info.m
r1127 r1134 62 62 end 63 63 % check the existence (not possible for OpenDAP data) 64 if ~isempty(regexp(fileinput,'^http://' ))|| exist(fileinput,'file')64 if ~isempty(regexp(fileinput,'^http://','once'))|| exist(fileinput,'file') 65 65 FileInfo.FileName=fileinput; 66 66 FileInfo.FileType='txt'; %default 67 %else68 %return %input file does not exist.67 else 68 return %input file does not exist. 69 69 end 70 70 [tild,tild,FileExt]=fileparts(fileinput);%get the file extension FileExt … … 101 101 end 102 102 case '.h5' 103 hinfo=hdf5info(fileinput); 104 if strcmp(hinfo.GroupHierarchy.Attributes(1).Value.Data,'MultipassPIVResults') 103 hinfo=h5info(fileinput); 104 FileInfo.CivStage=0; 105 for igroup=1:numel(hinfo.Groups) 106 if strcmp(hinfo.Groups(igroup).Name,'/piv0') 107 FileInfo.CivStage=3; 108 end 109 if strcmp(hinfo.Groups(igroup).Name,'/piv1') 110 FileInfo.CivStage=6; 111 break 112 end 113 end 114 if FileInfo.CivStage~=0 105 115 FileInfo.FileType='pivdata_fluidimage'; 106 FileInfo.CivStage=6; % A MODIFIER 116 else 117 FileInfo.FileType='h5'; 107 118 end 108 119 case '.cine'
Note: See TracChangeset
for help on using the changeset viewer.