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

load_train_data_files_tel#

magicctapipe.io.load_train_data_files_tel(input_dir, config, offaxis_min=None, offaxis_max=None, true_event_class=None)[source]#

Loads DL1-stereo data files and separates the shower events per telescope combination type for training RFs.

Parameters:
input_dirstr

Path to a directory where input DL1-stereo files are stored

configdict

Yaml file with information about the telescope IDs.

offaxis_minstr, optional

Minimum shower off-axis angle allowed, whose format should be acceptable by astropy.units.quantity.Quantity

offaxis_maxstr, optional

Maximum shower off-axis angle allowed, whose format should be acceptable by astropy.units.quantity.Quantity

true_event_classint, optional

True event class of the input events

Returns:
dict

Data frames of the shower events separated telescope-wise

Raises:
FileNotFoundError

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