pygnuastro.cosmology.to_absolute_mag¶
- pygnuastro.cosmology.to_absolute_mag()¶
Return the conversion from apparent to absolute magnitude for an object at redshift z. This value has to be added to the apparent magnitude to give the absolute magnitude of an object at redshift z.
- 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 conversion from apparent to absolute magnitude for an object at redshift z. This value has to be added to the apparent magnitude to give the absolute magnitude of an object at redshift z.
- Return type:
float