CameraCalibrator

class ctapipe.calib.CameraCalibrator(**kwargs)[source]

Bases: ctapipe.core.component.TelescopeComponent

Calibrator to handle the full camera calibration chain, in order to fill the DL1 data level in the event container.

Attributes
data_volume_reducer_type: str

The name of the DataVolumeReducer subclass to be used for data volume reduction

image_extractor_type: str

The name of the ImageExtractor subclass to be used for image extraction

Attributes Summary

apply_peak_time_shift

a TelescopeParameter with Bool trait type

apply_waveform_time_shift

a TelescopeParameter with Bool trait type

data_volume_reducer_type

An enum of strings where the case should be ignored.

image_extractor_type

Allow a parameter value to be specified as a simple value (of type dtype), or as a list of patterns that match different telescopes.

Methods Summary

__call__(event)

Perform the full camera calibration from R1 to DL1.

Attributes Documentation

apply_peak_time_shift

a TelescopeParameter with Bool trait type

apply_waveform_time_shift

a TelescopeParameter with Bool trait type

data_volume_reducer_type

An enum of strings where the case should be ignored.

image_extractor_type

Allow a parameter value to be specified as a simple value (of type dtype), or as a list of patterns that match different telescopes.

The patterns are given as a list of 3-tuples in the form: [(command, argument, value), ...].

Command can be one of:

  • 'type': argument is then a telescope type string (e.g. ('type', 'SST_ASTRI_CHEC', 4.0) to apply to all telescopes of that type, or use a wildcard like “LST*”, or “*” to set a pure default value for all telescopes.

  • 'id': argument is a specific telescope ID ['id', 89, 5.0])

These are evaluated in-order, so you can first set a default value, and then set values for specific telescopes or types to override them.

Examples

Methods Documentation

__call__(event)[source]

Perform the full camera calibration from R1 to DL1. Any calibration relating to data levels before the data level the file is read into will be skipped.

Parameters
eventcontainer

A ArrayEventContainer event container