Learn R Programming

astro (version 1.2)

coscalc: Calculates Cosmological Parameters

Description

Calculates several commonly used cosmological parameters using a given cosmology.

Usage

coscalc(z = 1, c = 3E8, H = 70, M = 0.3, L = 1-M, K = 1-M-L, dunit = "Mpc", vunit = "Gpc3", tunit = "Gyr", r = 1, inp = "arcsec", out = "kpc")

Arguments

z
redshift
c
speed of light (m/s)
H
Hubble constant (km/s/Mpc)
M
Omega M - matter
L
Omega L - energy
K
Omega K - curvature
dunit
outout distance units [Mpc/ly/m]
vunit
output volume units [Gpc3/ly3/m3]
tunit
output time units [Gyr/s]
r
radius/size
inp
input angular size units (see details)
out
output angular size units (see details)

Value

z
redshift
codist.los
comoving distance (line-of-sight)
codist.trans
comoving distance (transverse)
angdist
angular diameter distance
lumdist
luminosity distance
covol
comoving volume
lookback
lookback time
age
age of Universe at 'z'
angsize
angular size conversion

Details

'coscalc' brings together several commonly used cosmological distance/volume/time measurements as given by several other functions in the 'astro' package.

Units available for angular size conversion are: 'deg', 'rad' or 'arcsec' <==> 'm', 'pc', 'kpc' or 'Mpc'.

References

Hogg D. W., 1999, ArXiv Astrophysics e-prints, arXiv:astro-ph/9905116

See Also

The astronomy package: astro.