Reputation: 129
Is/are there any method(s) in JHDF5 (HDF5 for Java), which can be used to list all the paths in an H5 file?
I have an H5 file, (generated using Keras) and I have no idea how to retrieve the dataset from it. No matter how hard I look, I am not able to find a method which can do this. Any help is appreciated!!
Upvotes: 0
Views: 272
Reputation: 249434
First create an HDF5ArchiverFactory
and open()
(or openForReading()
) your file. This gives you a IHDF5Archiver
(or IHDF5ArchiveReader
), on which you can call list()
to get the members of the archive.
The documentation for JHDF5 is horrific auto-generated nonsense. It might be worthwhile to find a more high-level library if your needs are not too complex.
Upvotes: 4