12.1 The ast module

The ast module contains specialist functions for astronomy and cosmology.

ast.Lcdm_­age($H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­age($H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the current age of the Universe in a standard $\Uplambda _\mathrm {CDM}$ cosmology with specified values for Hubble’s constant, $\Omega _\mathrm {M}$ and $\Omega _\Uplambda $. Hubble’s constant should be specified either with physical units of recession velocity per unit distance, or as a dimensionless number, assumed to have implicit units of km/s/Mpc. Suitable input values for a standard cosmology are: $H_0=70$, $\Omega _\mathrm {M}=0.27$ and $\Omega _\Uplambda =0.73$. For more details, see David W. Hogg’s short article Distance measures in cosmology, available online at:
http://arxiv.org/abs/astro-ph/9905116.

ast.Lcdm_­angscale($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­angscale($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the angular scale of the sky at a redshift of $z$ in a standard $\Uplambda _\mathrm {CDM}$ cosmology. For details, see the ast.Lcdm_age() function above. The returned value has dimensions of distance per unit angle.

ast.Lcdm_­DA($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­DA($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the angular size distance of objects at a redshift of $z$ in a standard $\Uplambda _\mathrm {CDM}$ cosmology. For details, see the ast.Lcdm_age() function above. The returned value has dimensions of distance.

ast.Lcdm_­DL($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­DL($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the luminosity distance of objects at a redshift of $z$ in a standard $\Uplambda _\mathrm {CDM}$ cosmology. For details, see the ast.Lcdm_age() function above. The returned value has dimensions of distance.

ast.Lcdm_­DM($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­DM($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the proper motion distance of objects at a redshift of $z$ in a standard $\Uplambda _\mathrm {CDM}$ cosmology. For details, see the ast.Lcdm_age() function above. The returned value has dimensions of distance.

ast.Lcdm_­t($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­t($z$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the lookback time to objects at a redshift of $z$ in a standard $\Uplambda _\mathrm {CDM}$ cosmology. For details, see the ast.Lcdm_age() function above. The returned value has dimensions of time. To find the age of the Universe at a redshift of $z$, this value should be subtracted from the output of the ast.Lcdm_age() function.

ast.Lcdm_­z($t$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $)
The ast.Lcdm_­z($t$$H_0$$\Omega _\mathrm {M}$$\Omega _\Uplambda $) function returns the redshift corresponding to a lookback time of $t$ in a standard $\Uplambda _\mathrm {CDM}$ cosmology. For details, see the ast.Lcdm_age() function above. The returned value is dimensionless.

ast.moonphase($d$)
The ast.moonphase($d$) function returns the phase of the Moon, with dimensions of angle, at the time of the supplied date object $d$. If $d$ is numerical, it is assumed to be a Unix time.

ast.sidereal_­time($d$)
The ast.sidereal_­time($d$) function returns the sidereal time at Greenwich, with dimensions of angle, at the time of the supplied date object $d$. If $d$ is numerical, it is assumed to be a Unix time. The returned sidereal time is equal to the right ascension of the stars which are transiting the Greenwich meridian at that time. This function uses the expression for sidereal time adopted in 1982 by the International Astronomical Union (IAU), and which is reproduced in Chapter 12 of Jean Meeus’ book Astronomical Algorithms (1998).