Spectral Methods (gwpy.signal.spectral)#

FFT routines for GWpy.

This sub-package provides PSD estimation routines based on functionality provided by scipy.signal.

The methods provided here aren’t meant to be called directly by the user, but rather via instance methods of the TimeSeries object.

Functions#

average_spectrogram(timeseries, method_func, ...)

Generate an average spectrogram using a method function.

bartlett(timeseries, segmentlength[, noverlap])

Calculate a PSD using Bartlett's method.

coherence(timeseries, other, segmentlength)

Calculate the coherence between two TimeSeries using Welch's method.

csd(timeseries, other, segmentlength[, noverlap])

Calculate the CSD of two TimeSeries using Welch's method.

get_default_fft_api()

Return the preferred FFT-API library.

get_method(name)

Return the PSD method registered with the given name.

median(timeseries, segmentlength[, average])

Calculate a PSD using Welch's method with a median average.

psd(timeseries, method_func, *args, **kwargs)

Generate a PSD using a method function.

rayleigh(timeseries, segmentlength[, ...])

Calculate a Rayleigh statistic spectrum.

register_method(func[, name, deprecated])

Register a method of calculating an average spectrogram.

spectrogram(timeseries, **kwargs)

Generate a spectrogram by stacking periodograms.

welch(timeseries, segmentlength[, average])

Calculate a PSD using Welch's method.