wcosmo.wcosmo.source_to_detector_frame#

wcosmo.wcosmo.source_to_detector_frame(m1, m2, z, H0, Om0, w0=-1, method='pade')[source]#

Convert masses and redshift from the source frame to the detector frame.

Parameters:
m1: array_like

The primary mass in the source frame

m2: array_like

The secondary mass in the source frame

z: array_like

Redshift

H0: array_like

The Hubble constant in km/s/Mpc

Om0: array_like

The matter density fraction

w0: array_like

The (constant) equation of state parameter for dark energy

Returns:
m1z, m2z, dL: array_like

The primary and secondary masses in the detector frame and the luminosity distance