cosmology_utils module

Some cosmology utility functions

syntheticstellarpopconvolve.cosmology_utils.age_of_universe_to_redshift(age_of_universe, cosmology)[source]

Function to turn age of universe to redshift

syntheticstellarpopconvolve.cosmology_utils.lookback_time_to_redshift(lookback_time, cosmology)[source]

Function to calculate the redshift corresponding to a lookback time

Parameters

lookback_timefloat

Lookback time to be converted to redshift. Assumed to be in Gyr.

cosmologyastropy_cosmology

astropy cosmology object used to convert redshift and time.

Returns

TYPE

Description

syntheticstellarpopconvolve.cosmology_utils.redshift_to_age_of_universe(redshift, cosmology)[source]

Function to calculate the age of the universe corresponding to a certain redshift

syntheticstellarpopconvolve.cosmology_utils.redshift_to_lookback_time(redshift, cosmology)[source]

Function to calculate the lookback time corresponding to a certain redshift