yt.frontends.enzo.simulation_handling.EnzoCosmology.luminosity_distance

EnzoCosmology.luminosity_distance(z_i, z_f)

The distance that would be inferred from the inverse-square law of light and the measured flux and luminosity of the observed object.

Parameters:

z_i : float

The redshift of the observer.

z_f : float

The redshift of the observed object.

Examples

>>> co = Cosmology()
>>> print co.luminosity_distance(0., 1.).in_units("Mpc")