minute_trend_times#

gwpy.io.nds2.minute_trend_times(start: int, end: int) tuple[int, int][source]#

Expand a [start, end) interval for use in querying for minute trends.

NDS2 requires start and end times for minute trends to be a multiple of 60 (to exactly match the time of a minute-trend sample), so this function expands the given [start, end) interval to the nearest multiples.

Parameters:
startint

GPS start time of query.

endint

GPS end time of query.

Returns:
mstartint

start rounded down to nearest multiple of 60.

mendint

end rounded up to nearest multiple of 60.

Examples

>>> minute_trend_times(123, 456)
(120, 480)