astropy:docs

comoving_distance

astropy.cosmology.comoving_distance(*args, **kwargs)[source] [edit on github]

Deprecated since version 0.4: The comoving_distance function is deprecated and may be removed in a future version. Use <Cosmology object>.comoving_distance instead.

Comoving distance in Mpc at redshift z.

The comoving distance along the line-of-sight between two objects remains constant with time for objects in the Hubble flow.
Parameters:

z : array_like

Input redshifts.

Returns:

codist : Quantity

Comoving distance at each input redshift.

Page Contents