DataVolumeReducer

class ctapipe.image.reducer.DataVolumeReducer(**kwargs: Any)[source]

Bases: ctapipe.core.telescope_component.TelescopeComponent

Base component for data volume reducers.

Methods Summary

__call__(waveforms[, tel_id, …])

Call the relevant functions to perform data volume reduction on the waveforms.

select_pixels(waveforms[, tel_id, …])

Abstract method to be defined by a DataVolumeReducer subclass.

Methods Documentation

__call__(waveforms, tel_id=None, selected_gain_channel=None)[source]

Call the relevant functions to perform data volume reduction on the waveforms.

Parameters
waveforms: ndarray

Waveforms stored in a numpy array of shape (n_pix, n_samples).

tel_id: int

The telescope id. Required for the ‘image_extractor’ and ‘camera.geometry’ in ‘TailCutsDataVolumeReducer’.

selected_gain_channel: ndarray

The channel selected in the gain selection, per pixel. Required for the ‘image_extractor’ in ‘TailCutsDataVolumeReducer’. extraction.

Returns
mask: array

Mask of selected pixels.

abstract select_pixels(waveforms, tel_id=None, selected_gain_channel=None)[source]

Abstract method to be defined by a DataVolumeReducer subclass. Call the relevant functions for the required pixel selection.

Parameters
waveforms: ndarray

Waveforms stored in a numpy array of shape (n_pix, n_samples).

tel_id: int

The telescope id. Required for the ‘image_extractor’ and ‘camera.geometry’ in ‘TailCutsDataVolumeReducer’.

selected_gain_channel: ndarray

The channel selected in the gain selection, per pixel. Required for the ‘image_extractor’ in ‘TailCutsDataVolumeReducer’.

Returns
mask: array

Mask of selected pixels.