ism3d.utils.io.to_hdf5

ism3d.utils.io.to_hdf5(value, outname='test.h5', checkname=False, **kwargs)[source]

write a Python dictionary object into a HDF5 file. slashes are not allowed in HDF5 object names We repalce any “/” in keys with “|” to avoid a confusion with HDF5 internal structures

note:
https://support.hdfgroup.org/HDF5/Tutor/cmdtoolview.html

h5ls -r test.h5

h5dump -n 1 test.h5

optional kwargs: compression=’gzip’ None, gzip, lzf (+ szip, if installed)

gzip is preferred lzip with high-speed but lower comperssion rate. examples: uvdata.h5 (none2.5GB/lzip2.2GB/gzip2.0GB)