Simple spectrumΒΆ

This example shows a simple spectrum (power spectral density) of strain data from the LIGO-Livingston detector around the time of GW200129_065458 (see Gravitational-Wave Transient Catalogue (GWTC) 3 for full details).

gwpy-plot spectrum \
    --gwosc \
    --ifo L1 \
    --start 1264316100 \
    --duration 32 \
    --interactive

The same command can be executed directly in Python as:

from gwpy.cli.gwpy_plot import main
main([
    'spectrum',
    '--gwosc',
    '--ifo', 'L1',
    '--start', '1264316100',
    '--duration', '32',
    '--interactive',
])
Spectrum: L1, 2020-01-29 06:54:42.000 | 1264316100 (32.0), fftlength=1.0, overlap=0.5
Program run time: 15.7

Total running time of the script: (0 minutes 0.903 seconds)

Gallery generated by Sphinx-Gallery