MagUnit¶
-
class
astropy.units.function.
MagUnit
(physical_unit=None, function_unit=None)[source] [edit on github]¶ Bases:
astropy.units.function.LogUnit
Logarithmic physical units expressed in magnitudes
Parameters: physical_unit :
Unit
orstring
Unit that is encapsulated within the magnitude function unit. If not given, dimensionless.
function_unit :
Unit
orstring
By default, this is
mag
, but this allows one to use an equivalent unit such as2 mag
.