Hi!

On Nov 22, 2011, at 10:22 AM, jwomble wrote:

> If I try to create a datatype without the pointer in it, when I write to the
> file, the offsets don't match up, so my data is corrupted.  How do I create
> a second datatype and tell HDF5 that the two datatypes are equivalent?

        HDF5 matches fields in compound datatypes by names (recursively), so 
just create a memory datatype with the fields you would like to access in the 
file datatype and the library will fill just those fields in.  (See the example 
code in the HDF5 distribution: example/h5_compund.c)

        Quincey


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to