diff --git a/pycraf/conversions/__init__.py b/pycraf/conversions/__init__.py index b9f51b280..854e9b1d4 100644 --- a/pycraf/conversions/__init__.py +++ b/pycraf/conversions/__init__.py @@ -12,7 +12,7 @@ Unit Alias Definition ================ ============== ====================================== |dimless| dimless |u|.dimensionless_unscaled -|dB| = |dBi| dB = dBi |u|.dB(dimless) +|dB|,|dBi|,|dBc| dB, dBi, dBc |u|.dB(dimless) |dBW| dB_W |u|.dB(|u|.W) |dBW_Hz| dB_W_Hz |u|.dB(|u|.W / |u|.Hz) |dBW_m2| dB_W_m2 |u|.dB(|u|.W / |u|.m ** 2) @@ -30,6 +30,7 @@ .. |dimless| replace:: :math:`1` .. |dB| replace:: :math:`\mathrm{dB}` .. |dBi| replace:: :math:`\mathrm{dBi}` +.. |dBc| replace:: :math:`\mathrm{dBc}` .. |dBW| replace:: :math:`\mathrm{dB}[\mathrm{W}]` .. |dBW_Hz| replace:: :math:`\mathrm{dB}[\mathrm{W} / \mathrm{Hz}]` .. |dBW_m2| replace:: :math:`\mathrm{dB}[\mathrm{W} / \mathrm{m}^2]` diff --git a/pycraf/conversions/conversions.py b/pycraf/conversions/conversions.py index 858f81441..c63257283 100644 --- a/pycraf/conversions/conversions.py +++ b/pycraf/conversions/conversions.py @@ -15,8 +15,7 @@ UNITS = [ 'dimless', - 'dB', - 'dBi', + 'dB', 'dBi', 'dBc', 'dB_W', 'dB_W_Hz', 'dB_W_m2', @@ -46,7 +45,7 @@ # define some useful dB-Scales # dimless = apu.Unit(1) dimless = apu.dimensionless_unscaled -dB = dBi = apu.dB(dimless) +dB = dBi = dBc = apu.dB(dimless) dB_W = apu.dB(apu.W) dB_W_Hz = apu.dB(apu.W / apu.Hz) dB_W_m2 = apu.dB(apu.W / apu.m ** 2)