magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

merge_hdf_files#

magicctapipe.scripts.merge_hdf_files(input_dir, output_dir=None, run_wise=False, subrun_wise=False)[source]#

Merges the HDF files produced by the combined analysis pipeline.

Parameters:
input_dirstr

Path to a directory where input HDF files are stored

output_dirstr

Path to a directory where to save output HDF files

run_wisebool

If True, it merges the input files run-wise (applicable only to real data)

subrun_wisebool, optional

If True, it merges the input files subrun-wise (applicable only to MAGIC real data)

Raises:
FileNotFoundError

If any HDF files are not found in the input directory

RuntimeError

If multiple types of files are found in the input directory