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_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