yt.frontends.enzo.simulation_handling.EnzoCosmology.z_from_t

EnzoCosmology.z_from_t(my_time)

Compute the redshift from time after the big bang. This is based on Enzo’s CosmologyComputeExpansionFactor.C, but altered to use physical units.

Parameters:

my_time : float

Age of the Universe in seconds.

Examples

>>> co = Cosmology()
>>> print co.t_from_z(4.e17)