fluxToMag¶
- lsst.analysis.tools.fluxToMag(flux: Scalar | ndarray[Any, dtype[ScalarType]], flux_unit: Unit | str = Unit('nJy'), return_millimags: bool = False) Scalar | ndarray[Any, dtype[ScalarType]] ¶
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).