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_dir
str Path to a directory where input HDF files are stored
- output_dir
str 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)
- input_dir
- Raises:
FileNotFoundErrorIf any HDF files are not found in the input directory
RuntimeErrorIf multiple types of files are found in the input directory