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:
- event
ctapipe.containers.ArrayEventContainer From an EventSource
- tel_id
int Telescope ID
- config
dict Parameters for image extraction and calibration
- calibrator
ctapipe.calib.CameraCalibrator ctapipe object needed to calibrate the camera
- is_lstbool
Whether the telescope is a LST
- obs_id
int, optional Observation ID. Unused in case of LST telescope, by default None
- camera_geoms
ctapipe.instrument.camera.geometry.CameraGeometry, optional Camera geometry. Used in case of LST telescope, by default None
- magic_clean
dict, optional Each entry is a MAGICClean object using the telescope camera geometry. Used in case of MAGIC telescope, by default None
- event
- Returns:
tupleMask 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