wcosmo.wcosmo.detector_to_source_frame#

wcosmo.wcosmo.detector_to_source_frame(m1z, m2z, dL, H0, Om0, w0=-1, method='pade', zmin=0.0001, zmax=100)[source]#

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

This passes through the arguments to z_at_value to compute the redshift.

Parameters:
m1z: array_like

The primary mass in the detector frame

m2z: array_like

The secondary mass in the detector frame

dL: array_like

The luminosity distance in Mpc

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

zmin: float

The minimum redshift used in the conversion from distance to redshift, default=1e-4

zmax: float

The maximum redshift used in the conversion from distance to redshift, default=100

Returns:
m1, m2, z: array_like

The primary and secondary masses in the source frame and the redshift