How do I see what variables,datasets,etc. a given .h5 file has in Python?
I can read the file by running this
import h5py
f=H5py.file(filename,' r ' ) )。
howcaninowseewhichvariablesmy.H5 file have?
running f.keys (outputsthenon-informative
KeysView () )
inmatlabisimplycallh5disp (filename ) butwouldliketoknowhodoitinpython
Did you try?
打印(列表(f.keys ) )
thatshouldgiveyouallthegroupinsideyourhdf5file.youcandothesameforthedatasetsifisagroup。