PixelTreatment#
- class magicctapipe.image.PixelTreatment(camera, configuration)[source]#
Bases:
objectInterpolation for unsuitable pixels.
- Parameters:
- camera
ctapipe.instrument.CameraGeometry Camera geometry.
- configuration
dict Dictionary for the configuration.
- camera
Methods Summary
find_two_closest_times(times_arr)Find two closest times to the one of the current pixel.
Interpolate pedestals (not implemented).
Interpolate charge values.
Interpolate times (fast version).
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_arr
np.ndarray Time array.
- times_arr
- Returns:
tupleTwo closest times.
- treat(event_image, event_pulse_time, unsuitable_mask)[source]#
Interpolate unsuitable pixels (charge and time).
- Parameters:
- event_image
np.ndarray Event image (charge).
- event_pulse_time
np.ndarray Event image (time).
- unsuitable_mask
np.ndarray Mask array with unsuitable pixels.
- event_image
- Returns:
tupleTuple with interpolated values for pixels’ charge and time.