![]() |
HDF5
1.15.0.08e115b
API Reference
|
Navigate back: Main / Getting Started with HDF5 / Learning the Basics
HDFView and h5dump are standalone tools which cannot be called within an application, and using H5Dopen and H5Dread require that you know the name of the HDF5 dataset. How would an application that has no prior knowledge of an HDF5 file be able to determine or discover the contents of it, much like HDFView and h5dump?
The answer is that there are ways to discover the contents of an HDF5 file, by using the Groups (H5G), Links (H5L) and Objects (H5O) APIs:
Interface routines that simplify the process:
For example code, see the HDF5 Examples page. Specifically look at the Examples by API. There are examples for different languages, where examples of using H5Literate and H5Ovisit/H5Lvisit are included.
The h5ex_g_traverse example traverses a file using H5Literate:
The h5ex_g_visit example traverses a file using H5Ovisit and H5Lvisit:
Navigate back: Main / Getting Started with HDF5 / Learning the Basics