DexUnit#
- class astropy.units.DexUnit(physical_unit=None, function_unit=None)[source]#
Bases:
LogUnit
Logarithmic physical units expressed in magnitudes.
- Parameters:
Methods Summary
to_string
([format])Output the unit in the given format as a string.
Methods Documentation
- to_string(format='generic')[source]#
Output the unit in the given format as a string.
The physical unit is appended, within parentheses, to the function unit, as in “dB(mW)”, with both units set using the given format
- Parameters:
- format
astropy.units.format.Base
subclass orstr
The name of a format or a formatter class. If not provided, defaults to the generic format.
- format