swh:1:snp:3a699297f000109a1bc833f294a54171df990207
Raw File
Tip revision: b9c007220d4cd08698e05d8b812b9c800005736d authored by Josh Willis on 31 August 2018, 22:42:46 UTC
Beaut soup fix (#2308)
Tip revision: b9c0072
data.py
import pycbc.catalog, pylab

m = pycbc.catalog.Merger("GW170817")

# Retreive data from the Livingston observatory around the BNS merger
ts = m.strain("L1").time_slice(m.time - 30, m.time + 6)

# Whiten the data with a 4s filter
white = ts.whiten(4, 4)

times, freqs, power = white.qtransform(.01, logfsteps=200,
                                    qrange=(110, 110),
                                    frange=(20, 512))
pylab.pcolormesh(times, freqs, power**0.5)
pylab.yscale('log')
pylab.ylabel("Frequency (Hz)")
pylab.xlabel("Time (s)")
pylab.show()
back to top