High-resolution spectrumΒΆ

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

gwpy-plot spectrum \
    --gwosc \
    --ifo L1 \
    --start 1264315518 \
    --duration 1024 \
    --secpfft 64 \
    --xmin 10 \
    --xmax 1600 \
    --interactive

The same command can be executed directly in Python as:

from gwpy.cli.gwpy_plot import main
main([
    'spectrum',
    '--gwosc',
    '--ifo', 'L1',
    '--start', '1264315518',
    '--duration', '1024',
    '--secpfft', '64',
    '--xmin', '10',
    '--xmax', '1600',
    '--interactive',
])
Spectrum: L1, 2020-01-29 06:45:00.000 | 1264315518 (1024.0), fftlength=64.0, overlap=0.5
Program run time: 1.3

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

Gallery generated by Sphinx-Gallery