How to read a large 2D dataset row by row

Hi All,
I am fairly familiar with HDF4 but just starting on HDF5. For HDF4 I am
used to reading large 2D datasets line by line and am trying to do the same
for HDF5. Basically I am trying to write a routine to convert HDf5 datasets
to HDF4. For reading datasets row by row I am using H5Sselect_hyperslab
with H5Dread in a for loop for the number of rows in the data. But I keep
getting segmentation faults or the process takes too much time. So surely I
am doing something wrong. Can anyone please share with me an working
example of how to go about doing this.
Thanks

Hello,

I am fairly familiar with HDF4 but just starting on HDF5. For HDF4 I am
used to reading large 2D datasets line by line and am trying to do the same
for HDF5. Basically I am trying to write a routine to convert HDf5 datasets
to HDF4. For reading datasets row by row I am using H5Sselect_hyperslab
with H5Dread in a for loop for the number of rows in the data. But I keep
getting segmentation faults or the process takes too much time. So surely I
am doing something wrong. Can anyone please share with me an working
example of how to go about doing this.
Thanks

Have you seen the examples we have for selecting a hyperslab?

We have an example program in the HDF5 Tutorial of using hyperslab selection. The introductory HDF5 Tutorial is located here:

  http://www.hdfgroup.org/HDF5/Tutor/introductory.html

See the topic:

  http://www.hdfgroup.org/HDF5/Tutor/selectsimple.html

If you have questions about that let me know. I can help you change that
to read row-by-row.

We have example programs on this page, as well:
   http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-c.html

See the example "h5ex_d_hyper.c".

-Barbara

···

====================
Barbara Jones
The HDF Helpdesk

The HDF Group
help@hdfgroup.org