pygwb.spectral.pwelch_psd

pygwb.spectral.pwelch_psd(psdgram: Spectrogram, segment_duration: int, overlap_factor: float = 0.5)[source]

Estimate PSD using Welch’ method.

Parameters:
  • psdgram (gwpy.spectrogram.Spectrogram (PSD)) – PSD gram data to be averaged.

  • segment_duration (int) – Data duration (in seconds) over which PSDs need to be averaged. Should be greater than or equal to the duration used for FFT.

  • overlap_factor (float, optional) – Amount of overlap between adjacent average PSDs, can vary between 0 and 1.

Returns:
avg_psdgram: PSD gwpy.spectrogram.Spectrogram

Averaged over segments within the segment_duration.

See also

gwpy.spectrogram.Spectrogram

More information here.