bilby.gw.utils.get_gracedb

bilby.gw.utils.get_gracedb(gracedb, outdir, duration, calibration, detectors, query_types=None, server=None)[source]

Download information about a trigger from GraceDb and create cache files for finding gravitational-wave strain data.

Parameters:
gracedb: str

The GraceDb ID of the trigger.

outdir: str

Directory to write output.

duration: int

Duration of data to find about the trigger time (units: s).

calibration: int

Calibration label of the data, should be one of 1, 2.

detectors: list

The detectors to look for data for.

query_types: str

The LDR query type

server: str

The LIGO datafind server to look for data on.

Returns:
candidate: dict

Information downloaded from GraceDb about the trigger.

cache_files: list

List of cache filenames, one per interferometer.