Skip to main content
Ctrl+K
GWpy dev - Home GWpy dev - Home
  • Getting Started
  • User Guide
  • API Reference
  • Examples
  • Project Info
  • GitLab
  • Getting Started
  • User Guide
  • API Reference
  • Examples
  • Project Info
  • GitLab

Section Navigation

  • FrequencySeries examples
    • Calculate and plot a FrequencySeries
    • Calculate the coherence between two channels
    • Generating a SpectralVariance histogram
    • Inject a signal into a FrequencySeries
    • Plotting a Rayleigh-statistic Spectrum
    • Plotting an averaged ASD with percentiles.
  • Miscellaneous examples
    • Estimating the spectral contribution to inspiral range
    • Generating an inspiral range timeseries
    • Plotting a spectrogram of all open data for many hours
  • Segments examples
    • Plotting observing segments for O1
  • Signal processing examples
    • Filtering a TimeSeries to detect gravitational waves
  • Spectrogram examples
    • Calculating the time-dependent coherence between two channels
    • Plotting a Spectrogram
    • Plotting a Spectrogram of the Rayleigh statistic
    • Plotting a normalised Spectrogram
    • Plotting an over-dense, short-duration Spectrogram
  • Tabular data examples
    • Calculating (and plotting) rate versus time for an EventTable
    • Plotting EventTable rate versus time for specific column bins
    • Plotting an EventTable as 2-d tiles
    • Plotting an EventTable in a histogram
    • Plotting an EventTable in a scatter
  • TimeSeries examples
    • Accessing and visualising public GW detector data
    • Calculating the SNR associated with an astrophysical signal model
    • Comparing seismic trends between LIGO sites
    • Generate the Q-transform of a TimeSeries
    • Inject a known signal into a TimeSeries
    • Plotting segments for a StateVector
    • Whitening a TimeSeries
  • Examples gallery

Examples gallery#

GWpy needs more examples!

The GWpy project needs more real-life worked examples to demonstrate the full range of functionality that is available.

If you use GWpy for your research, please consider suggesting a new example to be included in the documentation.

To make a suggestion, please open an issue at

gwpy/gwpy#new

If you have a script that can be converted directly into an example please consider opening a merge request to add it to this gallery.

FrequencySeries examples#

Calculate and plot a FrequencySeries

Calculate and plot a FrequencySeries

Calculate the coherence between two channels

Calculate the coherence between two channels

Generating a SpectralVariance histogram

Generating a SpectralVariance histogram

Inject a signal into a FrequencySeries

Inject a signal into a FrequencySeries

Plotting a Rayleigh-statistic Spectrum

Plotting a Rayleigh-statistic Spectrum

Plotting an averaged ASD with percentiles.

Plotting an averaged ASD with percentiles.

Miscellaneous examples#

Estimating the spectral contribution to inspiral range

Estimating the spectral contribution to inspiral range

Generating an inspiral range timeseries

Generating an inspiral range timeseries

Plotting a spectrogram of all open data for many hours

Plotting a spectrogram of all open data for many hours

Segments examples#

Plotting observing segments for O1

Plotting observing segments for O1

Signal processing examples#

Filtering a TimeSeries to detect gravitational waves

Filtering a TimeSeries to detect gravitational waves

Spectrogram examples#

Calculating the time-dependent coherence between two channels

Calculating the time-dependent coherence between two channels

Plotting a Spectrogram

Plotting a Spectrogram

Plotting a Spectrogram of the Rayleigh statistic

Plotting a Spectrogram of the Rayleigh statistic

Plotting a normalised Spectrogram

Plotting a normalised Spectrogram

Plotting an over-dense, short-duration Spectrogram

Plotting an over-dense, short-duration Spectrogram

Tabular data examples#

Calculating (and plotting) rate versus time for an EventTable

Calculating (and plotting) rate versus time for an EventTable

Plotting EventTable rate versus time for specific column bins

Plotting EventTable rate versus time for specific column bins

Plotting an EventTable as 2-d tiles

Plotting an EventTable as 2-d tiles

Plotting an EventTable in a histogram

Plotting an EventTable in a histogram

Plotting an EventTable in a scatter

Plotting an EventTable in a scatter

TimeSeries examples#

Accessing and visualising public GW detector data

Accessing and visualising public GW detector data

Calculating the SNR associated with an astrophysical signal model

Calculating the SNR associated with an astrophysical signal model

Comparing seismic trends between LIGO sites

Comparing seismic trends between LIGO sites

Generate the Q-transform of a TimeSeries

Generate the Q-transform of a TimeSeries

Inject a known signal into a TimeSeries

Inject a known signal into a TimeSeries

Plotting segments for a StateVector

Plotting segments for a StateVector

Whitening a TimeSeries

Whitening a TimeSeries

Gallery generated by Sphinx-Gallery

previous

LAL_TYPE_STR_FROM_NUMPY

next

FrequencySeries examples

On this page
  • FrequencySeries examples
  • Miscellaneous examples
  • Segments examples
  • Signal processing examples
  • Spectrogram examples
  • Tabular data examples
  • TimeSeries examples
Edit on GitLab

© Copyright 2026 Cardiff University.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.17.1.