vrel: Velocity at redshift z relative to redshift zbar

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cosmo.r

Description

The velocity at redshift z relative to a reference redshift zbar is simply c * (z-zbar)/(1+zbar)

Usage

1
vrel(z, zbar)

Arguments

z

redshift

zbar

reference redshift

Details

Either z or zbar (or both) can be vectors.

Value

Relative velocity in km/sec.

Author(s)

M.L. Peck

See Also

dtrans for transverse separation

Examples

1
2
3
4
    ## a compact group of galaxies from SDSS
    
    z <- c(0.0860, 0.08751, 0.08686, 0.08636)
    vrel(z, z[3])

mlpeck/cosmo documentation built on May 23, 2019, 3:02 a.m.