bilby.gw.utils.get_open_strain_data

bilby.gw.utils.get_open_strain_data(name, start_time, end_time, outdir, cache=False, buffer_time=0, **kwargs)[source]

A function which accesses the open strain data

This uses gwpy to download the open data and then saves a cached copy for later use

Parameters:
name: str

The name of the detector to get data for

start_time, end_time: float

The GPS time of the start and end of the data

outdir: str

The output directory to place data in

cache: bool

If true, cache the data

buffer_time: float

Time to add to the beginning and end of the segment.

**kwargs:

Passed to gwpy.timeseries.TimeSeries.fetch_open_data

Returns:
strain: gwpy.timeseries.TimeSeries

The object containing the strain data. If the connection to the open-data server fails, this function returns None.