PixelTreatment#

class magicctapipe.image.PixelTreatment(camera, configuration)[source]#

Bases: object

Interpolation for unsuitable pixels.

Parameters:
cameractapipe.instrument.CameraGeometry

Camera geometry.

configurationdict

Dictionary for the configuration.

Methods Summary

find_two_closest_times(times_arr)

Find two closest times to the one of the current pixel.

interpolate_pedestals()

Interpolate pedestals (not implemented).

interpolate_signals()

Interpolate charge values.

interpolate_times_fast()

Interpolate times (fast version).

interpolate_times_slow()

Interpolate times (slow version).

treat(event_image, event_pulse_time, ...)

Interpolate unsuitable pixels (charge and time).

Methods Documentation

find_two_closest_times(times_arr)[source]#

Find two closest times to the one of the current pixel.

Parameters:
times_arrnp.ndarray

Time array.

Returns:
tuple

Two closest times.

interpolate_pedestals()[source]#

Interpolate pedestals (not implemented).

interpolate_signals()[source]#

Interpolate charge values.

interpolate_times_fast()[source]#

Interpolate times (fast version).

interpolate_times_slow()[source]#

Interpolate times (slow version).

treat(event_image, event_pulse_time, unsuitable_mask)[source]#

Interpolate unsuitable pixels (charge and time).

Parameters:
event_imagenp.ndarray

Event image (charge).

event_pulse_timenp.ndarray

Event image (time).

unsuitable_masknp.ndarray

Mask array with unsuitable pixels.

Returns:
tuple

Tuple with interpolated values for pixels’ charge and time.