SimplekAbsoluteMags

zdm.optical.SimplekAbsoluteMags(App, k, zs)[source]

Convert apparent to absolute magnitudes with a power-law k-correction.

Inverse of SimplekApparentMags: subtracts the distance modulus and k-correction 2.5 * k * log10(1 + z) from the apparent magnitude.

Parameters:
  • App (float or np.ndarray) – apparent magnitude(s) m_r.

  • k (float) – k-correction power-law index. k=0 reduces to a pure distance modulus (identical to SimpleAbsoluteMags).

  • zs (float or np.ndarray) – redshift(s) of the galaxies.

Returns:

absolute magnitude(s). Scalar if both inputs are

scalar; 1-D array if one is scalar and one is an array; 2-D array of shape (NApp, Nz) if both are arrays (computed via np.outer).

Return type:

AbsoluteMags