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

magic_calib_to_dl1#

magicctapipe.scripts.magic_calib_to_dl1(input_file, output_dir, config, max_events, process_run=False)[source]#

Processes the events of MAGIC calibrated data and computes the DL1 parameters.

Parameters:
input_filestr

Path to an input MAGIC calibrated data file

output_dirstr

Path to a directory where to save an output DL1 data file

configdict

Configuration for the LST-1 + MAGIC analysis

max_eventsint

Maximum number of events to process

process_runbool, optional

If True, it processes the events of all the subrun files found in the same directory of the input subrun file at once (applicable only to real data)