radarx.retrieve.qpe.rain_rate_z#

radarx.retrieve.qpe.rain_rate_z(obj, dbz=None, *, band='S', coefficients=None, z_cap=53.0, n_threads=None, engine='auto')[source]#

Rain rate from the reflectivity, R = a Z**b.

Z is the reflectivity in mm6 m-3 from the horizontal reflectivity in dBZ. The default for S band is the operational WSR-88D relation R = 1.70e-2 Z**0.714 (\(Z = 300 R^{1.4}\)), the one for X band the Marshall-Palmer type relation R = 0.029 Z**0.67 used for the Bonn radar; see radarx.retrieve.qpe for the sources and for what to correct before using it. There is no default for C band (no relation for it could be verified).

Parameters:
  • obj (xarray.DataArray, xarray.Dataset or xarray.DataTree) – The reflectivity (dBZ) as a DataArray, a sweep or grid that holds it, or a volume with sweep_* groups (sweeps without the field are skipped).

  • dbz (str, optional) – Name of the reflectivity. By default the first found of DBZH, DBZ, reflectivity and corrected_reflectivity. Correct the reflectivity for attenuation and calibration first and pass its name.

Notes

Dask and extra dimensions. The fields may have extra leading dimensions (for example time or volume): each sweep is processed on its own and the result has the same extra dimensions. Dask arrays stay lazy: the result is a dask array and nothing is computed until it is (the sweep dimensions are rechunked into one chunk).

{common}

Returns:

xarray.DataArray or xarray.DataTree – RAIN_RATE_Z (mm h-1) on the coordinates of the reflectivity (float32, NaN where the reflectivity is missing); for a DataTree one node per sweep with that variable. The input is not changed.

Raises:
  • KeyError – If the reflectivity is not found.

  • ValueError – For an unknown band or engine, a coefficients of the wrong length, or a band without a default and without coefficients.

References

Ryzhkov, A., M. Diederich, P. Zhang, and C. Simmer, 2014: Potential utilization of specific attenuation for rainfall estimation, mitigation of partial beam blockage, and radar networking. J. Atmos. Oceanic Technol., 31 (3), 599-619, https://doi.org/10.1175/JTECH-D-13-00038.1 (Eq. 18, S band; Eq. 21, X band).

Giangrande, S. E., and A. V. Ryzhkov, 2008: Estimation of rainfall based on the results of polarimetric echo classification. J. Appl. Meteor. Climatol., 47 (9), 2445-2462, https://doi.org/10.1175/2008JAMC1753.1 (the relations and the 53 dBZ cap are taken from the extended abstract of the same title, 33rd Conf. on Radar Meteorology, 2007, paper P6B.7, Eq. 1; the journal article has not been compared).

Examples

>>> rr = radarx.retrieve.rain_rate_z(sweep)
>>> rr = dtree.radarx.rain_rate_z(dbz="DBZH_corrected")