wradlib.georef.misc.GeorefMiscMethods.site_distance

wradlib.georef.misc.GeorefMiscMethods.site_distance#

GeorefMiscMethods.site_distance(**kwargs)[source]#

Calculates great circle distance from bin at certain altitude to the radar site over spherical earth, taking the refractivity of the atmosphere into account.

Based on [Doviak et al., 1993] the site distance may be calculated as

\[s = k_e r_e \arcsin\left( \frac{r \cos\theta}{k_e r_e + h_n(r, \theta, r_e, k_e)}\right)\]

where \(h_n\) would be provided by bin_altitude.

Parameters:

obj (xarray.DataArray | xarray.Dataset) – DataArray or Dataset

Returns:

z (xarray.DataArray) – DataArray