radarx.fundamentals.reflectivity.hitschfeld_bordan_correction#
- radarx.fundamentals.reflectivity.hitschfeld_bordan_correction(dbz, range_m=None, *, a, b, max_correction_db=10.0, range_dim='range', axis=-1, return_pia=False, n_threads=None, engine='auto', use_compiled=None)[source]#
Correct reflectivity for attenuation along the ray (Hitschfeld-Bordan).
The specific attenuation is the power law
k = a Z**b[dB km-1] of the unattenuated reflectivityZ[mm^6 m^-3]. The measured reflectivity isZm = Z 10**(-0.2 A)withAthe one-way integral ofkalong the ray (a two-way attenuation of2 AdB). Hitschfeld and Bordan [1] solved this forZfromZmalone,Z = Zm (1 - c S)**(-1/b),c = 0.2 b ln(10),S(r) = integral from 0 to r of a Zm**b ds(sin km),so that the correction in dB is the path-integrated attenuation
PIA = -(10 / b) log10(1 - c S), added to the measured dBZ. The closed form above is derived here from the power law and the definition ofZm; it has not been compared with the text of [1], and the form agrees with a forward model of the attenuation in the tests.Sis evaluated at the centre of each gate (the gates before it in full, half of the gate itself) with the gate length from the spacing ofrange_m. Attenuation before the first gate is not included. A gate without a value (NaN) adds nothing toSand stays NaN.The solution is unstable:
1 - c Sgoes to zero for strong attenuation and any error inaorbgrows with range [1]. The correction is therefore capped atmax_correction_db(default 10 dB, a radarx choice) where1 - c Swould fall below10**(-b max_correction_db / 10). The caller must treat capped gates as unreliable. The method needsaandbfor the radar band, the temperature and the drop size distribution; radarx does not provide them. It replacesdbz_attenuation_correction(), which used only the local value of the reflectivity.The calculation runs in a compiled multithreaded kernel with a NumPy fallback of the same results (
engine="numpy"selects it).- Parameters:
dbz (
xarray.DataArrayor array-like) – Measured (attenuated) reflectivity [dBZ], with the range alongrange_dim(DataArray) oraxis(array). A dask-backed DataArray stays lazy; the range dimension is then made a single chunk.range_m (array-like, optional) – Range of the gates [m], increasing. Taken from the coordinate
range_dimof a DataArray if not given; required for arrays.a (
float) – Coefficient ofk = a Z**b[dB km^-1 (mm^6 m^-3)^-b].b (
float) – Exponent ofk = a Z**b, positive.max_correction_db (
float, optional) – Upper limit of the correction [dB], positive and finite.range_dim (
str, optional) – Name of the range dimension of a DataArray.axis (
int, optional) – Range axis of an array.return_pia (
bool, optional) – Also return the correctionPIA[dB] (two-way).n_threads (
int, optional) – Threads of the compiled kernel. Default: all cores.engine (
{"auto", "compiled", "numpy"}, optional) – Kernel implementation."auto"uses the compiled kernel if it was built.use_compiled (
bool, optional) – Deprecated.Falseisengine="numpy".
- Returns:
xarray.DataArrayornumpy.ndarray– Corrected reflectivity [dBZ] of the shape ofdbz(a DataArray keeps its coords and attrs); withreturn_piaa tuple of the corrected reflectivity and the correction [dB].
References