fluxToMag¶
- lsst.analysis.tools.fluxToMag(flux: Scalar | ndarray[Any, dtype[_ScalarType_co]], flux_unit: Unit | str = Unit('nJy'), return_millimags: bool = False) Scalar | ndarray[Any, dtype[_ScalarType_co]] ¶
Convert fluxes to magnitudes.
- Parameters:
- flux
The flux(es) to convert.
- flux_unit
The flux unit, as an object or string. Default astropy.units.nJy.
- return_millimags
Whether to return millimags instead of mags.
- Returns:
- mags
The magnitude(s) converted from the flux(es).