ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

subtract_baseline#

ctapipe.image.extractor.subtract_baseline(waveforms, baseline_start, baseline_end)[source]#

Subtracts the waveform baseline, estimated as the mean waveform value in the interval [baseline_start:baseline_end]

Parameters:
waveformsndarray

Waveforms stored in a numpy array. Shape: (n_channels, n_pix, n_samples)

baseline_startint

Sample where the baseline window starts

baseline_endint

Sample where the baseline window ends

Returns:
baseline_correctedndarray

Waveform with the baseline subtracted Shape: (n_channels, n_pix, n_samples)