Example of dynamically reading groups and datasets

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

/DATA/GROUP1/GROUP2/TIME/VECTOR/[DATASETS]

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?

Thanks!

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

	Quincey

And here is the link to the H5Ovisit and H5Literate examples
https://portal.hdfgroup.org/display/HDF5/Examples+by+API

Elena

Thank you everyone. The examples worked well.