wradlib.trafo.decibel

Contents

wradlib.trafo.decibel#

wradlib.trafo.decibel(x)[source]#

Calculates the decibel representation of the input values

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

Parameters:

x (float or numpy.ndarray) – (must not be <= 0.)

Examples

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