swh:1:snp:3a699297f000109a1bc833f294a54171df990207
Tip revision: 3d62842f3b90322a2fcff172e76085f0d6914306 authored by Alex Nitz on 13 May 2019, 09:08:29 UTC
Update setup.py
Update setup.py
Tip revision: 3d62842
data.py
import pycbc.catalog, pylab
m = pycbc.catalog.Merger("GW170817")
fig, axs = pylab.subplots(2, 1, sharex=True, sharey=True)
for ifo, ax in zip(["L1", "H1"], axs):
pylab.sca(ax)
pylab.title(ifo)
# Retreive data around the BNS merger
ts = m.strain(ifo).time_slice(m.time - 15, 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, vmax=5)
pylab.yscale('log')
pylab.ylabel("Frequency (Hz)")
pylab.xlabel("Time (s)")
pylab.show()