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