wradlib.georef.misc.GeorefMiscMethods.bin_distance

wradlib.georef.misc.GeorefMiscMethods.bin_distance#

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

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

\[s = k_e r_e \arctan\left( \frac{r \cos\theta}{r \cos\theta + k_e r_e + h}\right)\]

where \(h\) would be the radar site altitude amsl.

Parameters:

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

Returns:

bin_distance (xarray.DataArray) – DataArray