SimpleApparentMags
- zdm.optical.SimpleApparentMags(Abs, zs)[source]
Convert absolute to apparent magnitudes using the distance modulus only.
Adds
5 * log10(D_L / 10 pc)to the absolute magnitude, where D_L is the luminosity distance in Mpc. No k-correction is applied.- Parameters:
- Returns:
- apparent magnitude(s). Scalar if both inputs are
scalar; 1-D array if one input 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