from gwosc.datasets import event_gps
from gwpy.timeseries import TimeSeries
gps = event_gps("GW150914")
start = int(gps) - 0.5
end = int(gps) + 0.5
# data = TimeSeries.fetch_open_data('L1', start, end)
data = TimeSeries.fetch_open_data('L1', start, end)
plot = data.plot()
plot.show()
得到如下图:
此代码参考的网址为: