Spectrum at two timesΒΆ

This example plots the spectrum (power spectral density) of strain data from both LIGO-Hanford and LIGO-Livingston for two different GPS times (around GW150914 and GW170817).

gwpy-plot spectrum \
    --gwosc \
    --ifo H1 L1 \
    --start 1126259446 \
    --start 1187008866 \
    --duration 32 \
    --interactive

The same command can be executed directly in Python as:

from gwpy.cli.gwpy_plot import main
main([
    'spectrum',
    '--gwosc',
    '--ifo', 'H1', 'L1',
    '--start', '1126259446',
    '--start', '1187008866',
    '--duration', '32',
    '--interactive',
])
Spectrum: H1, 2015-09-14 09:50:29.000 | 1126259446 (32.0), fftlength=1.0, overlap=0.5
Program run time: 20.8

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

Gallery generated by Sphinx-Gallery