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), byradarx.grid.grid_radars(): the cells are located from each radar by the geodesic distance and azimuth (WGS84). The grids are stacked on aradardimension 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. Withtimeandmotionevery 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 withsweep_*groups and the sitelatitude,longitudeandaltitude.x, y (array-like) – Grid coordinates (m) east and north of
origin.z (array-like) – Grid heights above sea level (m).
origin (
tupleoffloat, 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 (requiresmotion).motion (
xarray.Datasetortuple, optional) – Storm motion: the result ofradarx.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) – Howfieldis interpolated from the polar grid."linear"(default) is the cone gridding ofradarx.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, seeradarx.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 exponentnof the weight of the horizontal-last result forvelocity_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–fieldanddbzon(radar, z, y, x),azimuthandelevation(seeradar_geometry()), and onradar:radar_x,radar_y,radar_altitude,radar_latitude,radar_longitude,radar_nameandtime(the time of each radar’s data); pluslat,lonandcrs_wktof the grid.
Notes
Moving the radars to a common time with
timeandmotionis the frame-of-reference correction of Gal-Chen (1982) [1] (equations not checked against the paper; it assumes a steadily translating pattern, seeradarx.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]; seemulti_doppler());velocity_interpolation="mixed"uses their mixed-order interpolation. The grid’s lowest level determines wherew = 0is imposed (see the Notes ofmulti_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