absolute_magnitude_from_luminosity

skypy.utils.photometry.absolute_magnitude_from_luminosity(luminosity, zeropoint=None)[source] [edit on github]

Converts luminosities to absolute magnitudes.

Parameters
luminosityarray_like

Input luminosity.

zeropointfloat, optional

Zeropoint for the conversion. If a string is given, uses the reference luminosities from luminosity_in_band.

Returns
absolute_magnitudearray_like

Absolute magnitude values.