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.

NuRadioReco.utilities.signal_processing.add_cable_delay(station, det, sim_to_data=None, trigger=False, logger=None)[source]

Add or subtract cable delay by modifying the trace_start_time.

Parameters:
station: Station

The station to add the cable delay to.

det: Detector

The detector description

trigger: bool

If True, take the time delay from the trigger channel response. Only possible if det is of type rnog_detector.Detector. (Default: False)

logger: logging.Logger, default=None

If set, use logger.debug(..) to log the cable delay.

See also

NuRadioReco.modules.channelAddCableDelay.channelAddCableDelay

module that automatically applies / corrects for cable delays.