📌  相关文章
📜  如何组合多个 hdf5 文件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:57.828000             🧑  作者: Mango

代码示例2
#PLESE NOTE THIS IS IPYTHON CONSOLE CODE NOT PURE PYTHON

import h5py
#for every dataset Dn.h5 you want to merge to Output.h5 
f = h5py.File('D1.h5','r+') #file to be merged 
h5_keys = f.keys() #get the keys (You can remove the keys you don't use)
f.close() #close the file
for i in h5_keys:
        !h5copy -i 'D1.h5' -o 'Output.h5' -s {i} -d {i}