radarx.fundamentals.refraction.k_e_from_rays#
- radarx.fundamentals.refraction.k_e_from_rays(range_m, elevation_deg, beam_height, radar_height=0.0)[source]#
Effective Earth radius factor that gives a traced beam height.
The beam height of the effective Earth radius model is \(h = \sqrt{r^2 + A^2 + 2 r A \sin\theta} - k_e a\) with \(A = k_e a + h_0\) (Eq. 2.28b of Doviak and Zrnic 1993, as in
beam_center_height()). For given \(r\), \(\theta\), \(h\) and \(h_0\) it is linear in \(k_e a\), and the equation is solved for it,\[k_e a = \frac{r^2 + h_0^2 + 2 r h_0 \sin\theta - h^2} {2\,(h - h_0 - r \sin\theta)}.\]Use it to find the single
k_ethat the gridding, merging and beam blockage functions (theirk_eargument) need for the beams that the ray tracertrace_rays()computes, for example the median over the gates of a sweep. In a standard atmosphere it is 4/3; where the beam bends more it is larger, and for no bending (a straight ray in a flat atmosphere) it is infinite. Gates where the traced beam is not bent (the denominator is zero, or the range is zero) give NaN.- Parameters:
range_m (array-like or
xarray.DataArray) – Slant range of the gates (m).elevation_deg (array-like or
xarray.DataArray) – Elevation of the beam at the radar (degrees).beam_height (array-like or
xarray.DataArray) – Traced height of the beam above sea level (m), for example thebeam_heightoftrace_rays().radar_height (
float, optional) – Height of the radar above sea level (m). Default 0.
- Returns:
xarray.DataArrayornumpy.ndarray–k_e, broadcast like the inputs (a DataArray if any input is one).
References
Examples
>>> from radarx.fundamentals.geometry import beam_center_height >>> h = beam_center_height(100e3, 0.5, reff=1.25 * 6371000.0) >>> round(float(k_e_from_rays(100e3, 0.5, h)), 3) 1.25