event_segment

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

Returns the GPS [start, stop) interval covered by an event dataset

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

  • detector (str, optional) – prefix of GW detector

  • 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:

start, end – the GPS [start, end) interval covered by this run dataset

Return type:

int

Examples

>>> from gwosc.datasets import event_segment
>>> event_segment("GW150914")
segment(1126257415, 1126261511)