yt.frontends.enzo.simulation_handling.EnzoCosmology.comoving_radial_distance

EnzoCosmology.comoving_radial_distance(z_i, z_f)

The comoving distance along the line of sight to on object at redshift, z_f, viewed at a redshift, z_i.

Parameters:

z_i : float

The redshift of the observer.

z_f : float

The redshift of the observed object.

Examples

>>> co = Cosmology()
>>> print co.comoving_radial_distance(0., 1.).in_units("Mpccm")