obspy.signal.spectral_estimation.welch_window

welch_window(n)[source]

Return a welch window for data of length n.

Routine is checked against PITSA for both even and odd values, but not for strange values like n<5.

Parameters:

n (int) – Length of window function.

Return type:

ndarray

Returns:

Window function for tapering data.