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

Scripts (~magicctapipe.scripts)#

Reference/API#

magicctapipe.scripts Package#

Functions#

create_dl3_index_files(input_dir)

Creates DL3 index files.

create_irf(input_file_gamma, ...)

Processes MC DL2 events and creates the IRFs.

dl1_stereo_to_dl2(input_file_dl1, ...)

Processes DL1-stereo events and reconstructs the DL2 parameters with trained RFs.

dl2_to_dl3(input_file_dl2, input_dir_irf, ...)

Processes DL2 events and creates a DL3 data file with the IRFs.

event_coincidence(input_file_lst, ...)

Searches for coincident events from LST and MAGIC joint observation data offline using their timestamps.

mc_dl0_to_dl1(input_file, output_dir, ...)

Processes LST-1 and MAGIC events of simtel MC DL0 data and computes the DL1 parameters.

stereo_reconstruction(input_file, ...[, ...])

Processes DL1 events and reconstructs the geometrical stereo parameters with more than one telescope information.

train_energy_regressor(input_dir, ...[, ...])

Trains energy regressors with gamma MC DL1-stereo events.

train_disp_regressor(input_dir, output_dir, ...)

Trains DISP regressors with gamma MC DL1-stereo events.

train_event_classifier(input_dir_gamma, ...)

Trains event classifiers with gamma and proton MC DL1-stereo events.

magic_calib_to_dl1(input_file, output_dir, ...)

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

merge_hdf_files(input_dir[, output_dir, ...])

Merges the HDF files produced by the combined analysis pipeline.