radarx.fundamentals.geometry.k_e_from_refractivity#

radarx.fundamentals.geometry.k_e_from_refractivity(height, refractivity, layer=(0.0, 1000.0))[source]#

Effective Earth radius factor k_e from a refractivity profile.

The gradient dn/dh of the refractive index is taken as the mean gradient of the refractivity N over layer (the profile is interpolated linearly to the layer bounds), dn/dh = 1e-6 dN/dh, and k_e = a_e / a with a_e from effective_radius(), that is the equivalent-Earth relation of [1] (Eqs. 2.27 and 2.28). Pass the result as k_e to the gridding, merging and cone functions of radarx.grid.

The refractivity N (N-units) must be computed beforehand from the pressure, temperature and humidity of a sounding or of reanalysis (for example ERA5) levels; this function does not do that. The layer is the part of the profile the lowest beams travel through; the default of the lowest kilometre above the first height is a radarx choice. The model assumes a constant gradient (see beam_center_height()), so it describes only the mean bending of that layer.

Parameters:
  • height (array-like) – Heights of the profile levels [m], in the same reference as layer.

  • refractivity (array-like) – Refractivity N at the levels [N-units].

  • layer (tuple of float, optional) – Lower and upper height [m] of the layer whose gradient is used. Default (0, 1000).

Returns:

float – k_e; 4/3 corresponds to dn/dh of about -39 N-units per km.

Raises:

ValueError – If the profile has fewer than two levels, the layer is empty, or the gradient is at or below the trapping value (-157 N-units/km for the radarx Earth radius), for which no effective radius exists.

References