radarx.retrieve.multidoppler.radar_geometry#

radarx.retrieve.multidoppler.radar_geometry(obj, *, earth_radius=6371000.0)[source]#

Beam azimuth and elevation of every radar at every grid cell.

The beam is a straight line on an Earth of 4/3 its radius (the effective Earth radius model, Doviak and Zrnić 1993 [1], Eqs. 2.28b-d, pp. 21-22). The elevation is the local angle of the beam above the horizon at the grid cell (the antenna elevation plus the angle the beam has travelled around the Earth), so that the radial velocity is \(u \cos\phi \sin\alpha + v \cos\phi \cos\alpha + w \sin\phi\) with u, v along the grid axes.

The grid is treated as a plane: the azimuth is the planar bearing from the radar position in the grid coordinates. For radars 100 km either side of the origin at 35 degrees latitude it differs from the geodesic azimuth of radarx.grid.grid_radars() (which multi_doppler_input() uses) by less than 0.01 degrees.

Parameters:
  • obj (xarray.Dataset) – Grid with z (m above sea level), y, x (m) and the radar positions radar_x, radar_y (m, in the grid’s coordinates) and radar_altitude (m above sea level) on the radar dimension.

  • earth_radius (float, optional) – Earth radius in m.

Returns:

xarray.Dataset – obj with azimuth and elevation on (radar, z, y, x) (degrees; azimuth clockwise from the grid y axis).

References