How to detect the datatype of H5T_ARRAY


#1

Hi,
I am trying to read the compound datatypes, successfully read the interger, float and rest but when trying to read the array data, we know it belongs to H5T_ARRAY but we don’t know what is the datatype of the values in the array. How to find the datatype of values in the array. please do help me. In the image below i need to read the image moments column which contains double data.


#2

The array type is considered to be a “derived type” of its element type. To obtain a handle to the “parent” or “super” type use H5Tget_super https://portal.hdfgroup.org/display/HDF5/H5T_GET_SUPER. G.


#3

You can use H5Tget_super for this.

Quincey

#4

Thanks for the reply…I got the id of derived datatype using H5Tget_super and then retrieving the size of the derived type using H5Tget_size.