wradlib.trafo.decibel

wradlib.trafo.decibel(x)

Calculates the decibel representation of the input values

\(dBZ=10 \cdot \log_{10} z\)

Parameters

x (a number or an array) – (must not be <= 0.)

Examples

>>> from wradlib.trafo import decibel
>>> print(decibel(100.))
20.0