How to extract information from h5disp?

11 views (last 30 days)
Could someone please, advise as to how to extract information in the form of string from the h5disp? Intuitively, I was trying a=h5disp('Fe3cell1_01.h5','Aligned/data/Size') but with poor luck...
Thank you.
h5disp('Fe3cell1_01.h5')
HDF5 Fe3cell1_01.h5
Group '/'
Attributes:
'source': 'ESRF_debian6'
'encoding': 'UTF8'
'creator': 'EDNA'
'HDF5_API_Version': '1.8'
'file_name': 'Fe3cell1_01.h5'
'file_time': '2013-02-26T16:31:18+01:00'
Group '/Aligned'
Attributes:
'creator': 'EDNA'
'NX_class': 'NXentry'
'index': '1'
Dataset 'Offsets'
Size: 2x279
MaxSize: 2xInf
Datatype: H5T_IEEE_F32LE (single)
ChunkSize: 2x1
Filters: none
Attributes:
'MaxOffset': 10
Dataset 'data'
Size: 971x1471x279
MaxSize: 971x1471xInf
Datatype: H5T_IEEE_F32LE (single)
ChunkSize: 971x1471x1
Filters: none
Attributes:
'creator': 'EDNA'
'signal': '1'
'interpretation': 'image'
'long_name': 'FullField XANES mapping'
'axes': 'energy'
Dataset 'duration'
Size: scalar
Datatype: H5T_IEEE_F64LE (double)
ChunkSize: []
Filters: none
FillValue: 0.000000
Dataset 'end_time'
Size: scalar
Datatype: H5T_STRING
String Length: variable
Padding: H5T_STR_NULLTERM
Character Set: H5T_CSET_ASCII
Character Type: H5T_C_S1
ChunkSize: []
Filters: none
Dataset 'energy'
Size: 279
MaxSize: Inf
Datatype: H5T_IEEE_F32LE (single)
ChunkSize: 1
Filters: none
Attributes:
'long_name': 'Energy of the monochromated beam'
'interpretation': 'scalar'
'unit': 'keV'
'axis': '1'
Dataset 'maxInt'
Size: 279
MaxSize: Inf
Datatype: H5T_IEEE_F32LE (single)
ChunkSize: 1
Filters: none
Attributes:
'long_name': 'Mean of the last percentil on the frame'
'interpretation': 'scalar'
'monitor': '1'
Dataset 'program'
Size: scalar
Datatype: H5T_STRING
String Length: variable
Padding: H5T_STR_NULLTERM
Character Set: H5T_CSET_ASCII
Character Type: H5T_C_S1
ChunkSize: []
Filters: none
Dataset 'reference_frame'
Size: 951x1451
MaxSize: 951x1451
Datatype: H5T_IEEE_F32LE (single)
ChunkSize: []
Filters: none
FillValue: 0.000000
Attributes:
'index': 12
'origin': 12
Dataset 'start_time'
Size: scalar
Datatype: H5T_STRING
String Length: variable
Padding: H5T_STR_NULLTERM
Character Set: H5T_CSET_ASCII
Character Type: H5T_C_S1
ChunkSize: []
Filters: none
Dataset 'title'
Size: scalar
Datatype: H5T_STRING
String Length: variable
Padding: H5T_STR_NULLTERM
Character Set: H5T_CSET_ASCII
Character Type: H5T_C_S1
ChunkSize: []
Filters: none
Group '/Aligned/NXdata'
Attributes:
'NX_class': 'NXdata'
Link 'data'
Type: hard link
Link 'energy'
Type: hard link

Accepted Answer

Ashish Uthama
Ashish Uthama on 26 Jun 2013
What data are you trying to extract?
h5info will return the same content as the disp, but in the form of a structure. While h5read can specific data from the file.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!