spectre.IO.H5.CombineH5Dat

Functions

combine_h5_dat(h5files, output, force, ...)

Combines multiple HDF5 dat files

spectre.IO.H5.CombineH5Dat.combine_h5_dat(h5files, output, force, remove_overlapping_segments)

Combines multiple HDF5 dat files

This executable is used for combining a series of HDF5 files, each containing one or more dat files, into a single HDF5 file. A typical use case is to join dat-containing HDF5 files from different segments of a simulation, with each segment containing values of the dat files during different time intervals. The executable is sensitive to order, so if you aim to combine h5 files from different segments of a simulation, verify that the order you combine is chronological to preserve relative time continuity.

Parameters:
  • h5files – List of H5 dat files to join

  • output – Output filename. An extension ‘.h5’ will be added if not present.

  • force – If specified, overwrite output file if it already exists.

  • remove_overlapping_segments – If specified, remove data with overlapping times, preserving later times from h5 files. Verify h5 files are ordered correctly, otherwise the option will remove more data than desired.