gwpopulation_pipe.vt_helper.load_injection_data
- load_injection_data(vt_file, ifar_threshold=1, snr_threshold=11)[source]
Load the injection file in the O3 injection file format.
For mixture files and multiple observing run files we only have the full sampling_pdf.
We use a different parameterization than the default so we require a few changes.
we parameterize the model in terms of primary mass and mass ratio and the injections are generated in primary and secondary mass. The Jacobian is primary mass.
we parameterize spins in spherical coordinates, neglecting azimuthal parameters. The injections are parameterized in terms of cartesian spins. The Jacobian is 1 / (2 pi magnitude ** 2).
For O3 injections we threshold on FAR. For O1/O2 injections we threshold on SNR as there is no FAR provided by the search pipelines.
- Parameters:
- vt_file: str
The path to the hdf5 file containing the injections.
- ifar_threshold: float
The threshold on inverse false alarm rate in years. Default=1.
- snr_threshold: float
The SNR threshold when there is no FAR. Default=11.
- Returns:
- gwpop_data: dict
Data required for evaluating the selection function.