cogwheel.waveform.compute_hplus_hcross_by_mode

cogwheel.waveform.compute_hplus_hcross_by_mode(f, par_dic, approximant: str, harmonic_modes, lal_dic=None)

Compute the contribution of each harmonic mode to hplus, hcross.

Parameters:
f1d array of type float

Frequency array in Hz

par_dicdict

Source parameters. Needs to have these keys:

  • m1, m2: component masses (Msun)

  • d_luminosity: luminosity distance (Mpc)

  • iota: inclination (rad)

  • phi_ref: phase at reference frequency (rad)

  • f_ref: reference frequency (Hz)

plus, optionally:

  • s1x_n, s1y_n, s1z, s2x_n, s2y_n, s2z: dimensionless spins

  • l1, l2: dimensionless tidal deformabilities

approximantstr

Approximant name.

harmonic_modeslist of 2-tuples with (l, m) pairs

Which (co-precessing frame) higher-order modes to include.

lal_dicLALDict, optional

Contains special approximant settings.

Returns:
dict

Dictionary of the form {(l, m): h_lm} with the contribution of each harmonic mode to hplus, hcross.