wradlib.trafo.TrafoMethods#

class wradlib.trafo.TrafoMethods(obj)[source]#

Bases: XarrayMethods

wradlib xarray SubAccessor methods for DualPol.

decibel()[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
idecibel()[source]#

Calculates the inverse of input decibel values

\(z=10^{x \over 10}\)

Parameters:

x (float or numpy.ndarray)

Examples

>>> from wradlib.trafo import idecibel
>>> print(idecibel(10.))
10.0
r_to_depth(interval)[source]#

Computes rainfall depth (mm) from rainfall intensity (mm/h)

Parameters:
  • x (float or numpy.ndarray) – rainfall intensity in mm/h

  • interval (float) – time interval (s) the values of x represent

Returns:

output (float or numpy.ndarray) – rainfall depth (mm)

decibel()

Calculates the decibel representation of the input values

idecibel()

Calculates the inverse of input decibel values

r_to_depth(interval)

Computes rainfall depth (mm) from rainfall intensity (mm/h)