Skip to content
Snippets Groups Projects
Commit ec2eabda authored by Colm Talbot's avatar Colm Talbot
Browse files

update with catalog events

parent c1ccda15
No related branches found
No related tags found
No related merge requests found
......@@ -270,32 +270,42 @@ def get_event_time(event):
"""
Get the merger time for known GW events.
We currently know about:
See https://www.gw-openscience.org/catalog/GWTC-1-confident/html/
Last update https://arxiv.org/abs/1811.12907:
GW150914
LVT151012
GW151012
GW151226
GW170104
GW170608
GW170729
GW170809
GW170814
GW170817
GW170818
GW170823
Parameters
----------
event: str
Event descriptor, this can deal with some prefixes, e.g., '150914', 'GW150914', 'LVT151012'
Event descriptor, this can deal with some prefixes, e.g.,
'151012', 'GW151012', 'LVT151012'
Returns
------
event_time: float
Merger time
"""
event_times = {'150914': 1126259462.422,
'151012': 1128678900.4443,
'151226': 1135136350.65,
'170104': 1167559936.5991,
'170608': 1180922494.4902,
'170814': 1186741861.5268,
'170817': 1187008882.4457}
event_times = {'150914': 1126259462.4,
'151012': 1128678900.4,
'151226': 1135136350.6,
'170104': 1167559936.6,
'170608': 1180922494.5,
'170729': 1185389807.3,
'170809': 1186302519.8,
'170814': 1186741861.5,
'170817': 1187008882.4,
'170818': 1187058327.1,
'170823': 1187529256.5}
if 'GW' or 'LVT' in event:
event = event[-6:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment