yt.frontends.enzo.simulation_handling.EnzoCosmology.angular_diameter_distance

EnzoCosmology.angular_diameter_distance(z_i, z_f)

Following Hogg (1999), the angular diameter distance is ‘the ratio of an object’s physical transverse size to its angular size in radians.’

Parameters:

z_i : float

The redshift of the observer.

z_f : float

The redshift of the observed object.

Examples

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