bilby.gw.conversion.luminosity_distance_to_comoving_distance

bilby.gw.conversion.luminosity_distance_to_comoving_distance(distance, cosmology=None)[source]

Convert from luminosity_distance to comoving_distance

Parameters:
luminosity_distance: float

The luminosity_distance to convert.

cosmology: astropy.cosmology.Cosmology

The cosmology to use for the transformation. See bilby.gw.cosmology.get_cosmology for details of how to specify this.

Returns:
float

The comoving_distance corresponding to the provided luminosity_distance.