wradlib.georef.misc.GeorefMiscMethods#

class wradlib.georef.misc.GeorefMiscMethods[source]#

Bases: object

wradlib xarray SubAccessor methods for Georef Misc Methods.

bin_altitude(**kwargs)[source]#

Calculates the height of a radar bin taking the refractivity of the atmosphere into account.

Based on [Doviak et al., 1993] the bin altitude is calculated as

\[h = \sqrt{r^2 + (k_e r_e)^2 + 2 r k_e r_e \sin\theta} - k_e r_e\]
Parameters

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

Returns

z (xarray.DataArray) – DataArray

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

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

bin_altitude(**kwargs)

Calculates the height of a radar bin taking the refractivity of the atmosphere into account.

bin_distance(**kwargs)

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

site_distance(**kwargs)

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