radarx.retrieve.multidoppler.multi_doppler_input#

radarx.retrieve.multidoppler.multi_doppler_input(volumes, x, y, z, *, origin=None, field='VRADH', dbz='DBZH', time=None, motion=None, fill_below=False, velocity_interpolation='linear', mixed_order=0.5, n_threads=None, engine='auto')[source]#

Grid several radar volumes onto one grid for multi_doppler().

Every volume is cone-gridded onto the same grid, centred on origin (an azimuthal equidistant projection), by radarx.grid.grid_radars(): the cells are located from each radar by the geodesic distance and azimuth (WGS84). The grids are stacked on a radar dimension together with the beam azimuth and elevation of every radar at every cell. Placing the cells by plane offsets from the origin’s projection, as earlier versions did, displaced them by up to 0.8 km (0.3 km on average) for radars 100 km from the origin at 35 degrees latitude. With time and motion every radar’s fields are first moved to the common analysis time (radarx.retrieve.advect()).

Radial velocities must be dealiased first (radarx.retrieve.dealias_velocity()).

Parameters:
  • volumes (sequence of xarray.DataTree) – Radar volumes with sweep_* groups and the site latitude, longitude and altitude.

  • x, y (array-like) – Grid coordinates (m) east and north of origin.

  • z (array-like) – Grid heights above sea level (m).

  • origin (tuple of float, optional) – (latitude, longitude) of the grid centre. Default: the first radar.

  • field, dbz (str, optional) – Field names. Default "VRADH" and "DBZH". A missing reflectivity field is skipped.

  • time (datetime-like, optional) – Analysis time to advect every radar to (requires motion).

  • motion (xarray.Dataset or tuple, optional) – Storm motion: the result of radarx.retrieve.estimate_motion() or (u, v) in m s-1.

  • fill_below (bool, optional) – Fill levels below the lowest sweep. Default False.

  • velocity_interpolation ({"linear", "mixed"}, optional) – How field is interpolated from the polar grid. "linear" (default) is the cone gridding of radarx.grid.grid_radars() (inside the sweeps, then in height). "mixed" blends it with the horizontal-last interpolation of Collis et al. (2010) to reduce the gridding artifacts that become spurious vertical velocities, see radarx.grid.grid_cones_mixed() for the method and what it costs (horizontal resolution at high elevations). Reflectivity is always gridded as before.

  • mixed_order (float, optional) – The exponent n of the weight of the horizontal-last result for velocity_interpolation="mixed". Default 0.5.

  • n_threads (int, optional) – Threads for the compiled kernels. Default: all cores.

  • engine ({"auto", "compiled", "numpy"}, optional) – Gridding implementation.

Returns:

xarray.Dataset – field and dbz on (radar, z, y, x), azimuth and elevation (see radar_geometry()), and on radar: radar_x, radar_y, radar_altitude, radar_latitude, radar_longitude, radar_name and time (the time of each radar’s data); plus lat, lon and crs_wkt of the grid.

Notes

Moving the radars to a common time with time and motion is the frame-of-reference correction of Gal-Chen (1982) [1] (equations not checked against the paper; it assumes a steadily translating pattern, see radarx.retrieve.advect()). Interpolating the radial velocity from the polar grid can create gridding artifacts that affect the retrieved vertical velocity (Collis et al. 2010 [2]; see multi_doppler()); velocity_interpolation="mixed" uses their mixed-order interpolation. The grid’s lowest level determines where w = 0 is imposed (see the Notes of multi_doppler()).

Dask. This function computes the dask array: it grids several volumes onto one grid. The input is loaded into memory and the result is held in memory.

References