SimplekApparentMags

zdm.optical.SimplekApparentMags(Abs, k, zs)[source]

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

Applies the distance modulus plus a k-correction of the form 2.5 * k * log10(1 + z).

Parameters:
  • Abs (float or np.ndarray) – absolute magnitude(s) M_r.

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

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

Returns:

apparent 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 (NAbs, Nz) if both are arrays (computed via np.outer).

Return type:

ApparentMags