get_segments

gwosc.timeline.get_segments(flag, start, end, host='https://gwosc.org')

Return the [start, end) GPS segments for this flag

Parameters:
  • flag (str) – name of flag, e.g. 'H1_DATA'

  • start (int) – the GPS start time of your query

  • end (int) – the GPS end time of your query

  • host (str, optional) – the URL of the remote GWOSC server

Returns:

segments – a list of [a, b) GPS segments

Return type:

list of (int, int) tuples