radarx.retrieve.qpe.rain_rate_a#
- radarx.retrieve.qpe.rain_rate_a(obj, a=None, *, band='S', coefficients=None, temperature=None, polarization='h', negative='keep', n_threads=None, engine='auto')[source]#
Rain rate from the specific attenuation,
R = a(T) A**b(T).Ais the specific attenuation in dB km-1, estimated from the differential phase (for example \(A = \alpha K_{DP}\) or the ZPHI method, seeradarx.retrieve.qpe). The rain rate then does not depend on the reflectivity calibration, on attenuation or on partial beam blockage, and the relation is little affected by the drop size distribution (Ryzhkov et al. 2014). The default is the optimal relation of their Table 1 for the band, polarization and temperature, for exampleR = 4.12e3 A**1.03at S band and 20 degrees Celsius (their Eq. 24).- Parameters:
obj (
xarray.DataArray,xarray.Datasetorxarray.DataTree) – The specific attenuation as a DataArray, a sweep or grid that holds it, or a volume (sweeps without the field are skipped).a (
str, optional) – Name of the specific attenuation (dB km-1). By default the first found ofAH,specific_attenuationandA.temperature (
float,strorxarray.DataArray, optional) – Temperature (degrees Celsius, or K if theunitssay so) of the rain at each gate, a number, the name of a field or a field. The coefficients are interpolated linearly between 0, 10, 20 and 30 degrees and constant outside that range. Default 20 degrees Celsius. Ignored whencoefficientsis given.polarization (
{"h", "v"}, optional) – Polarization of the specific attenuation. Default"h".negative (
{"keep", "zero"}, optional) – What to do with negative A (noise): keep the sign (default) or give zero (a radarx option).{common}
- Returns:
xarray.DataArrayorxarray.DataTree–RAIN_RATE_A(mm h-1) on the coordinates of A (float32, NaN where A or the temperature is missing); for a DataTree one node per sweep. The input is not changed.- Raises:
KeyError – If the specific attenuation is not found.
ValueError – For an unknown
band,polarization,negativeorengine, or acoefficientsof the wrong length.
Notes
The table was fitted to drop size distributions measured in Oklahoma at S, C and X band. R(A) relies on the specific attenuation being right: with attenuation estimated from a path-integrated differential phase it fails in areas of hail (Ryzhkov et al. 2014, section 6).
Dask and extra dimensions. The fields may have extra leading dimensions (for example
timeorvolume): 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).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 (Table 1; Eq. 24)
Examples
>>> rr = radarx.retrieve.rain_rate_a(sweep, a="AH") >>> rr = sweep.radarx.rain_rate_a(temperature=15.0, band="C")