event_segment

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

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

Parameters:
event

the name of the event

detector=None

prefix of GW detector

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

pagesize=None

the number of results per page

Returns:

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

Return type:

int

Examples

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