MagUnit# class astropy.units.function.logarithmic.MagUnit(physical_unit=None, function_unit=None)[源代码]# 基类:LogUnit 以量级表示的对数物理单位。 参数: physical_unit : Unit 或 string单位或字符串封装在量值函数单元中的单位。如果未给出,则无量纲。 function_unit : Unit 或 string单位或字符串默认情况下,这是 mag ,但这允许使用等效单位,例如 2 mag .