Hi Ben,
On Oct 19, 2010, at 7:18 AM, Ben Lane wrote:
> Hello all -
> I am trying to re use some code that checked the encoding type and
> the byte order of a dataset. My issue is that I am trying to apply
> the same code to check a compound dataset. Apparently the code does
> not allow this. I need to find out a particular type inside of a
> compound dataset and check its endian-ness.
>
> Is there a way to do this? If so, is there sample code somewhere that
> I can look at? Unfortunately, I cannot paste the code.
It's possible that a compound datatype has members that are different
endianess, etc. You'll need to use H5Tget_member_type to retrieve the datatype
of each field and then query that (possibly recursively, if it's a compound
datatype). You may also need to use H5Tget_super to retrieve the base datatype
for array or variable-length datatypes.
Quincey
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org