Hello everyone,

I am working with an HDF5 file that has a 5D dataset. What I'm wanting to
do is to create a C program that reads this dataset into memory and then
outputs it into a newly created file with only that dataset in it (perhaps
at the root directory of the file tree). What I don't understand is how to
read this entire 5D array using H5Dread into a 5D buffer that has been
previously allocated on the heap (note I cannot use an array allocated on
the stack, it would be too large and would create seg faults).

What is the general process I need to employ to do such a thing, and is
there maybe a more elegant solution to this than reading the entire dataset
into memory? This process seems easy to me for a 1 or 2D array but I am
lost with larger dimension arrays. Thanks.

Regards,
Landon
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to