Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to loadh5 file in python

import h5py
filename = "file.hdf5"

with h5py.File(filename, "r") as f:
    # List all groups
    print("Keys: %s" % f.keys())
    a_group_key = list(f.keys())[0]

    # Get the data
    data = list(f[a_group_key])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #python
ADD COMMENT
Topic
Name
6+3 =