yt.frontends.enzo.simulation_handling.EnzoCosmology.comoving_transverse_distance

EnzoCosmology.comoving_transverse_distance(z_i, z_f)

When multiplied by some angle, the distance between two objects observed at redshift, z_f, with an angular separation given by that angle, viewed by an observer at redshift, z_i (Hogg 1999).

Parameters:

z_i : float

The redshift of the observer.

z_f : float

The redshift of the observed object.

Examples

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