NuRadioReco.utilities.signal_processing module

NuRadioReco.utilities.signal_processing.half_hann_window(length, half_percent=None, hann_window_length=None)[source]

Produce a half-Hann window. This is the Hann window from SciPY with ones inserted in the middle to make the window length long. Note that this is different from a Hamming window.

Parameters:
lengthint

The desired total length of the window

half_percentfloat, default=None

The percentage of length at the beginning and end that should correspond to half of the Hann window

hann_window_lengthint, default=None

The length of the half the Hann window. If half_percent is set, this value will be overwritten by it.