MagUnit¶
-
class
astropy.units.MagUnit(*args, **kwargs)[source] [edit on github]¶ Bases:
astropy.units.function.LogUnitLogarithmic physical units expressed in magnitudes
Parameters: physical_unit :
UnitorstringUnit that is encapsulated within the magnitude function unit. If not given, dimensionless.
function_unit :
UnitorstringBy default, this is
mag, but this allows one to use an equivalent unit such as2 mag.