event_gps

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

Returns the GPS time of an open-data event

Parameters:
  • event (str) – the name of the event to query

  • catalog (str, optional) – name of catalogue that hosts this event

  • version (int, None, optional) – the version of the data release to use, defaults to the highest available version

  • host (str, optional) – the URL of the GWOSC host to query, defaults to https://gwosc.org

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'