pygnuastro.cosmology.z_from_velocity

pygnuastro.cosmology.z_from_velocity()

Return the redshift corresponding to the given velocity (v in km/s).

Parameters:
  • z (float) – Redshift

  • H0 (float/None) – Hubble constant in units of km/sec/Mpc

  • olambda (float/None) – Cosmological Constant

  • omatter (float/None) – Matter Density

  • oradiation (float/None) – Radiation Density

Returns:

The redshift corresponding to the given velocity (v in km/s).

Return type:

float