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

calibrate#

magicctapipe.image.calibrate(event, tel_id, config, calibrator, is_lst, obs_id=None, camera_geoms=None, magic_clean=None)[source]#

This function calibrates the camera image for a single event of a telescope

Parameters:
eventctapipe.containers.ArrayEventContainer

From an EventSource

tel_idint

Telescope ID

configdict

Parameters for image extraction and calibration

calibratorctapipe.calib.CameraCalibrator

ctapipe object needed to calibrate the camera

is_lstbool

Whether the telescope is a LST

obs_idint, optional

Observation ID. Unused in case of LST telescope, by default None

camera_geomsctapipe.instrument.camera.geometry.CameraGeometry, optional

Camera geometry. Used in case of LST telescope, by default None

magic_cleandict, optional

Each entry is a MAGICClean object using the telescope camera geometry. Used in case of MAGIC telescope, by default None

Returns:
tuple

Mask of the pixels selected by the cleaning, array of number of p.e. in the camera pixels, array of the signal peak time in the camera pixels