Does H5info have issues with HDF5 databases that contain COMPOUND datatypes?

I have an HDF5 database that contains a COMPOUND datatype. When I run h5info on my database, it generates an error message. I tracked down the problem and it dealt with the COMPOUND datatype in my database. When I deleted my compound datatype from my database, h5info works. There's nothing special about my compound datatype. It contains an integer value and two double array. So my question is, can h5info handle COMPOUND datatypes, which are valid in HDF5?

7 comentarios

Can anyone answer my question?

"[...] can h5info handle COMPOUND datatypes, which are valid in HDF5?"   AFAIK: Yes.

I've used one COMPOUND datatype successfully for some years. I both write and read with Matlab. My compound datatype is

uint32,double,uint8

I use it to store time series of measured data. h5info is frequently called in my code. I just tested h5info (on Win7,R2016a)

.

Hard to tell why you have problems

nomo
nomo el 27 de Mzo. de 2018
Editada: nomo el 27 de Mzo. de 2018
The Error message I get is, when running h5info is "No MATLAB class corresponds to floating point numbers with more than 64 bits".
  • hdf-forum might be able to help.
  • "It contains an integer value and two double array" That shouldn't cause problems. Sounds to me like Matlab has problems interpreting the metadata.
What does HDFView say about your file?
When I open it in HDFView, the attribute is listed as:
Type = Compound{32-bit integer, 64-bit floating point, 64-bit floating point}
Array Size = Scalar
Value = {1, 1.1, 2.2}
I cannot help
I use HDFView 2.13, I guess you use 3.0. However, I don't recognize your text.
This is a description of my Compound data type.
>> info = h5info( filespec );
>> info.Groups(3).Datatypes.Type.Member(1).Datatype
ans =
Name: ''
Class: 'H5T_INTEGER'
Type: 'H5T_STD_U32LE'
Size: 4
Attributes: []
>> info.Groups(3).Datatypes.Type.Member(2).Datatype
ans =
Name: ''
Class: 'H5T_FLOAT'
Type: 'H5T_IEEE_F64LE'
Size: 8
Attributes: []
>> info.Groups(3).Datatypes.Type.Member(3).Datatype
ans =
Name: ''
Class: 'H5T_INTEGER'
Type: 'H5T_STD_U8LE'
Size: 1
Attributes: []
>>

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 11 de En. de 2018

Comentada:

el 4 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by