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_efrom a refractivity profile.The gradient
dn/dhof the refractive index is taken as the mean gradient of the refractivityNoverlayer(the profile is interpolated linearly to the layer bounds),dn/dh = 1e-6 dN/dh, andk_e = a_e / awitha_efromeffective_radius(), that is the equivalent-Earth relation of [1] (Eqs. 2.27 and 2.28). Pass the result ask_eto the gridding, merging and cone functions ofradarx.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 (seebeam_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
Nat the levels [N-units].layer (
tupleoffloat, optional) – Lower and upper height [m] of the layer whose gradient is used. Default(0, 1000).
- Returns:
float–k_e; 4/3 corresponds todn/dhof 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