mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
These examples are referred to from the replacement page of https://portal.hdfgroup.org/display/HDF5/Other+Examples.
10 lines
208 B
Python
10 lines
208 B
Python
import h5py
|
|
def print_info(name, obj):
|
|
print(name)
|
|
for name, value in obj.attrs.items():
|
|
print(name+":", value)
|
|
|
|
f = h5py.File('GATMO-SATMS-npp.h5', 'r+')
|
|
f.visititems(print_info)
|
|
f.close()
|