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

load_magic_dl1_data_files#

magicctapipe.io.load_magic_dl1_data_files(input_dir, config)[source]#

Loads MAGIC DL1 data files for the event coincidence with LST-1.

Parameters:
input_dirstr

Path to a directory where input MAGIC DL1 data files are stored

configdict

Yaml file with information about the telescope IDs.

Returns:
event_datapandas.DataFrame

Dataframe of MAGIC events

subarrayctapipe.instrument.subarray.SubarrayDescription

MAGIC subarray description

Raises:
FileNotFoundError

If any DL1 data files are not found in the input directory