Functions for converting between different measures of cosmological distance.
The following parameters are used:
For a flat universe, omegaM
+omegaLambda
=1
The terms and formulae used here are taken from the paper by D.W.Hogg, Distance measures in cosmology, astro-ph/9905116 v4 (2000).
MpcToM( distMpc )
distMpc
(floating point): distance in MpcmToMpc( distM )
distM
(floating point): distance in mzToDist( z )
Warning: this makes some reasonable assumptions about the cosmology and returns the luminosity distance. It is only intended for approximate use. If you care about the details, use one of the more specific functions here.
z
(floating point): redshiftzToAge( z )
Warning: this makes some reasonable assumptions about the cosmology. It is only intended for approximate use. If you care about the details use one of the more specific functions here.
z
(floating point): redshiftz
in GyrcomovingDistanceL( z, H0, omegaM, omegaLambda )
z
(floating point): redshiftH0
(floating point): Hubble constant in km/sec/MpcomegaM
(floating point): density ratio of the universeomegaLambda
(floating point): normalised cosmological constantcomovingDistanceT( z, H0, omegaM, omegaLambda )
z
(floating point): redshiftH0
(floating point): Hubble constant in km/sec/MpcomegaM
(floating point): density ratio of the universeomegaLambda
(floating point): normalised cosmological constantangularDiameterDistance( z, H0, omegaM, omegaLambda )
z
(floating point): redshiftH0
(floating point): Hubble constant in km/sec/MpcomegaM
(floating point): density ratio of the universeomegaLambda
(floating point): normalised cosmological constantluminosityDistance( z, H0, omegaM, omegaLambda )
z
(floating point): redshiftH0
(floating point): Hubble constant in km/sec/MpcomegaM
(floating point): density ratio of the universeomegaLambda
(floating point): normalised cosmological constantlookbackTime( z, H0, omegaM, omegaLambda )
z
were emitted.
z
(floating point): redshiftH0
(floating point): Hubble constant in km/sec/MpcomegaM
(floating point): density ratio of the universeomegaLambda
(floating point): normalised cosmological constantcomovingVolume( z, H0, omegaM, omegaLambda )
z
.
z
(floating point): redshiftH0
(floating point): Hubble constant in km/sec/MpcomegaM
(floating point): density ratio of the universeomegaLambda
(floating point): normalised cosmological constantSPEED_OF_LIGHT
METRE_PER_PARSEC
SEC_PER_YEAR