bilby.gw.detector.load_data_from_cache_file

bilby.gw.detector.load_data_from_cache_file(cache_file, start_time, segment_duration, psd_duration, psd_start_time, channel_name=None, sampling_frequency=4096, roll_off=0.2, overlap=0, outdir=None)[source]

Helper routine to generate an interferometer from a cache file

Parameters:
cache_file: str

Path to the location of the cache file

start_time, psd_start_time: float

GPS start time of the segment and data stretch used for the PSD

segment_duration, psd_duration: float

Segment duration and duration of data to use to generate the PSD (in seconds).

roll_off: float, optional

Rise time in seconds of tukey window.

overlap: float,

Number of seconds of overlap between FFTs.

channel_name: str

Channel name

sampling_frequency: int

Sampling frequency

outdir: str, optional

The output directory in which the data is saved

Returns:
ifo: bilby.gw.detector.Interferometer

An initialised interferometer object with strain data set to the appropriate data in the cache file and a PSD.