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,valong 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()(whichmulti_doppler_input()uses) by less than 0.01 degrees.- Parameters:
obj (
xarray.Dataset) – Grid withz(m above sea level),y,x(m) and the radar positionsradar_x,radar_y(m, in the grid’s coordinates) andradar_altitude(m above sea level) on theradardimension.earth_radius (
float, optional) – Earth radius in m.
- Returns:
xarray.Dataset–objwithazimuthandelevationon(radar, z, y, x)(degrees; azimuth clockwise from the gridyaxis).
References