SimpleAbsoluteMags
- zdm.optical.SimpleAbsoluteMags(App, zs)[source]
Convert apparent to absolute magnitudes using the distance modulus only.
Subtracts
5 * log10(D_L / 10 pc)from the apparent magnitude, where D_L is the luminosity distance in Mpc. No k-correction is applied.- Parameters:
- Returns:
- absolute 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 (NApp, Nz) if both are arrays (computed via
np.outer).
- Return type:
AbsoluteMags