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

IO (~magicctapipe.io)#

Reference/API#

magicctapipe.io Package#

Functions#

check_input_list(config)

This function checks if the input telescope list is organized as follows:

create_event_hdu(event_table, on_time, ...)

Creates a fits binary table HDU for shower events.

create_gh_cuts_hdu(gh_cuts, ...)

Creates a fits binary table HDU for dynamic gammaness cuts.

create_gti_hdu(event_table)

Creates a fits binary table HDU for Good Time Interval (GTI).

create_pointing_hdu(event_table)

Creates a fits binary table HDU for the pointing direction.

format_object(input_object)

Formats a object (dictionary or list) to show its elements.

get_dl2_mean(event_data[, weight_type, ...])

Gets mean DL2 parameters per shower event.

get_stereo_events(event_data, config[, ...])

Gets the stereo events surviving specified quality cuts.

get_stereo_events_old(event_data[, ...])

Gets the stereo events surviving specified quality cuts.

load_dl2_data_file(input_file, quality_cuts, ...)

Loads a DL2 data file for processing to DL3.

load_irf_files(input_dir_irf)

Loads input IRF data files for the IRF interpolation and checks the consistency of their configurations.

load_lst_dl1_data_file(input_file)

Loads a LST-1 DL1 data file and arranges the contents for the event coincidence with MAGIC.

load_magic_dl1_data_files(input_dir, config)

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

load_mc_dl2_data_file(input_file, ...)

Loads a MC DL2 data file for creating the IRFs.

load_train_data_files(input_dir[, ...])

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

load_train_data_files_tel(input_dir, config)

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

save_pandas_data_in_table(input_data, ...[, ...])

Saves a pandas data frame in a table.

telescope_combinations(config)

Generates all possible telescope combinations without repetition.

resource_file(filename)

Get the absoulte path of magicctapipe resource files.

Classes#

BaseEventInfoContainer([prefix])

Base container to store event information

RealEventInfoContainer([prefix])

Container to store real event information

SimEventInfoContainer([prefix])

Container to store simulated event information