combine hdf5 file

Da Bi
  • 16 Apr

I want to run a halo finder for the simulation snapshot. However the illustris snapshot are divided into several hdf5 files. Is there any way to combine them into one standard hdf5 file?

Dylan Nelson
  • 17 Apr

Hello,

Yes this shouldn't be too hard, just decide which parttype(s) and field(s) you want to save first, create a new HDF5 file with empty datasets corresponding to the total sizes NumPart_Total, then loop over each "chunk file", load its contents, and save into the new HDF5 file in the right position.

  • Page 1 of 1