Example of dynamically reading groups and datasets

Hi -
I’m trying to read a file that has the the following structure:


I’ve reviewed the reading examples but I do not see any examples illustrating how I can discover the groups/datasets embedded in the file. Unlike the examples, the groups and datasets can be dynamic, so I first need to traverse the hierarchy and then discover the datasets that exist.

Can anyone please share an example? I’ve tried and reviewed a variety of APIs, but nothing immediately jumps out.

Even if I know the groups/datasets, how can I access them using the Java wrapper?


Hi Scott,
Do H5Literate or H5Ovisit (or their variants) meet your needs?


And here is the link to the H5Ovisit and H5Literate examples


Thank you everyone. The examples worked well.