simtools-merge-tables#

Merge tables from multiple input files into single tables.

Allows to merge tables (e.g., astropy tables) from multiple input files into a single file. The input files can be of HDF5 or FITS format. specified output file.

Merging large tables in FITS are not recommended, as it may lead to performance issues.

Command line arguments#

input str

Input file(s) (e.g., ‘file1 file2’).

input_list str

File with list of input files with tables.

table_names list of str

Names of tables to merge from each input file.

output_file str

Output file name.

output_path str

Path to the output file for the merged tables.

Example#

Merge tables from two files generated with ‘simtools-generate-simtel-event-data’ into a single file.

simtools-merge-tables \\
    --input_files file1 file2' \\
    --table_names 'SHOWERS TRIGGERS FILE_INFO' \\
    --output_file merged_tables.hdf5