bilby.gw.detector.get_interferometer_with_fake_noise_and_injection

bilby.gw.detector.get_interferometer_with_fake_noise_and_injection(name, injection_parameters, injection_polarizations=None, waveform_generator=None, sampling_frequency=4096, duration=4, start_time=None, outdir='outdir', label=None, plot=True, save=True, zero_noise=False, raise_error=True)[source]

Helper function to obtain an Interferometer instance with appropriate power spectral density and data, given an center_time.

Note: by default this generates an Interferometer with a power spectral density based on advanced LIGO.

Parameters:
name: str

Detector name, e.g., ‘H1’.

injection_parameters: dict

injection parameters, needed for sky position and timing

injection_polarizations: dict

Polarizations of waveform to inject, output of waveform_generator.frequency_domain_strain(). If waveform_generator is also given, the injection_polarizations will be calculated directly and this argument can be ignored.

waveform_generator: bilby.gw.waveform_generator.WaveformGenerator

A WaveformGenerator instance using the source model to inject. If injection_polarizations is given, this will be ignored.

sampling_frequency: float

sampling frequency for data, should match injection signal

duration: float

length of data, should be the same as used for signal generation

start_time: float

Beginning of data segment, if None, injection is placed 2s before end of segment.

outdir: str

directory in which to store output

label: str

If given, an identifying label used in generating file names.

plot: bool

If true, create an ASD + strain plot

save: bool

If true, save frequency domain data and PSD to file

zero_noise: bool

If true, set noise to zero.

Returns:
bilby.gw.detector.Interferometer: An Interferometer instance with a PSD and frequency-domain strain data.