event_gps

gwosc.datasets.event_gps(event, catalog=None, version=None, host='https://gwosc.org', session=None)

Returns the GPS time of an open-data event

Parameters:
event

the name of the event to query

catalog=None

name of catalogue that hosts this event

version=None

the version of the data release to use, defaults to the highest available version

host='https://gwosc.org'

the URL of the GWOSC host to query, defaults to https://gwosc.org

session=None

HTTP session to use for making requests, defaults to using a new session for each API call

Returns:

gps – the GPS time of this event

Return type:

float

Examples

>>> from gwosc.datasets import event_gps
>>> event_gps("GW170817")
1187008882.43
>>> event_gps("GW123456")
ValueError: no event dataset found for 'GW123456'