How can I combine multiple .h5 file?

前端 未结 3 583
长发绾君心
长发绾君心 2020-12-06 21:46

Everything that is available online is too complicated. My database is large to I exported it in parts. I now have three .h5 file and I would like to combine them into one .

3条回答
  •  一个人的身影
    2020-12-06 22:45

    There are at least 3 ways to combine data from individual HDF5 files into a single file:

    1. Use external links to create a new file that points to the data in your other files (requires pytables/tables module)
    2. Copy the data with the HDF Group utility: h5copy.exe
    3. Copy the data with Python (using h5py or pytables)

    An example of external links is available here:
    https://stackoverflow.com/a/55399562/10462884
    It shows how to create the links and then how to dereference them.

    Documentation for h5copy is here:
    https://support.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Copy

    Copying with h5py or pytables is more involved.

提交回复
热议问题