radarx.retrieve.tc_winds.tc_center#

radarx.retrieve.tc_winds.tc_center(obj, *, field=None, first_guess=None, first_guess_latlon=None, radii=None, min_radius=5000.0, max_radius=60000.0, radius_step=1000.0, ring_width=2000.0, max_wavenumber=2, mean_wind=None, guess_grid=4, guess_spacing=None, search_radius=None, inflection_window=1000.0, selection='norm', simplex_radius=4000.0, min_points=30, max_gap=120.0, geometric_limit=False, k_e=1.3333333333333333, n_threads=None, engine='auto')[source]#

Circulation centre and radius of maximum wind of a tropical cyclone.

Searches, from a grid of starting points around a first guess and for every ring radius, the centre that maximises the axisymmetric tangential wind retrieved by GBVTD, takes the consensus of the converging searches and selects the radius with the best NORM score (Bell and Lee 2012, one volume). The method, the sources and what is not taken from them are in radarx.retrieve.tc_winds.

Parameters:
  • obj (xarray.DataArray, xarray.Dataset or xarray.DataTree) – A plan position indicator of the Doppler velocity with azimuth (one value per ray), range (m) and elevation (per ray, else sweep_fixed_angle) and the radar altitude (latitude and longitude for geographic output); a DataArray is the velocity itself. For a volume every sweep is processed. Dask-backed input gives a lazy result. The velocity must be dealiased (radarx.retrieve.dealias_velocity()).

  • field (str, optional) – Name of the velocity field. Default: the first of VRADH, VRAD and the like.

  • first_guess (tuple of float, optional) – (x, y) of the first guess of the centre in m east and north of the radar (a best-track or eye-fix position). Default: the midpoint of the strongest inbound and outbound velocities.

  • first_guess_latlon (tuple of float, optional) – (latitude, longitude) of the first guess instead of first_guess.

  • radii (array-like, optional) – Ring radii (m). Default min_radius to max_radius in steps of radius_step.

  • min_radius, max_radius, radius_step (float, optional) – Default radii (m): 5 to 60 km in 1 km steps.

  • ring_width (float, optional) – Full width of the triangular weight of a ring (m). Default 2000.

  • max_wavenumber (int, optional) – Highest Fourier order of the ring fit (1 to 4). Default 2, the wavenumbers 0 and 1 of the vortex (the fit of Lee and Marks 2000).

  • mean_wind (tuple of float, optional) – (u, v) mean wind or storm motion (m s-1) that removes the cross-beam mean wind from the tangential wind. Default None: not removed.

  • guess_grid (int, optional) – The starting points form a guess_grid by guess_grid grid. Default 4 (16 searches per ring, as in Bell and Lee).

  • guess_spacing (float, optional) – Spacing of the starting points (m). Default: a quarter of the radius of maximum wind of the dipole estimate, between 1 and 10 km.

  • search_radius (float, optional) – A centre farther than this (m) from the first guess is rejected. Default: twice the dipole estimate of the radius of maximum wind, at least 10 km.

  • inflection_window (float, optional) – Radii within this distance (m) of a local maximum of the tangential wind profile qualify as radius of maximum wind. Default 1000.

  • selection ({"norm", "max_vt"}, optional) – How the radius of maximum wind, and with it the centre, is chosen among the rings. "norm" (default) takes the best NORM score (Bell and Lee 2012), "max_vt" the ring with the highest tangential wind (Lee and Marks 2000).

  • simplex_radius (float, optional) – Circumradius (m) of the equilateral first simplex around a starting point. Default 4000, the value of Lee and Marks (2000).

  • min_points (int, optional) – Fewest gates in a ring. Default 30.

  • max_gap (float, optional) – Largest angular gap (degrees) of the data of a ring. Default 120.

  • geometric_limit (bool, optional) – Limit the Fourier order of a ring by sin(alpha_max) = R / R_T (wavenumbers 1, 2 and 3 only up to 0.7, 0.5 and 0.33, Lee et al. 1999). Default False.

  • k_e (float, optional) – Effective Earth radius factor of the beam geometry. Default 4/3.

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

  • engine ({"auto", "compiled", "numpy"}, optional) – Implementation. "auto" (default) prefers the compiled kernel.

Returns:

xarray.Dataset or xarray.DataTree – On the dimension radius (m): VT0 (the mean axisymmetric tangential wind of the converging centres), RING_CENTER_X and RING_CENTER_Y, CENTER_SPREAD, N_CONVERGING, NORM_SCORE (NaN for radii that do not qualify) and SELECTED. Scalars: CENTER_X and CENTER_Y (m east and north of the radar), CENTER_LATITUDE and CENTER_LONGITUDE, RMW (m), VT_MAX (m s-1), CENTER_UNCERTAINTY (m) and the first guess. All NaN if no ring could be fitted. For a volume a DataTree with one node per sweep. The input is not changed.

Raises:
  • ValueError – For invalid options or a sweep without the geometry.

  • TypeError – If obj is not an xarray object.

  • ImportError – If engine="compiled" and the kernel is not available.

Notes

Checked against Lee and Marks (2000): the objective (the axisymmetric tangential wind of the ring), the first simplex, the termination, the consensus of the starting points and the choice of the ring; their analytic tests are reproduced to the accuracy given in the module documentation. The choices that are radarx’s own are listed there too.

Dask. Dask arrays stay lazy: the result is a dask array and nothing is computed until it is.

References