radarx.retrieve.columns.zdr_column_metrics#

radarx.retrieve.columns.zdr_column_metrics(obj, *, min_depth=1000.0, cell_area=None)[source]#

Maximum depth, area and volume of the ZDR columns of a map of depths.

Parameters:
  • obj (xarray.DataArray or xarray.Dataset) – The depth of the ZDR column (m), ZDR_COLUMN_DEPTH of zdr_column(), on the horizontal dimensions y and x (or the last two) and any leading (time) dimensions.

  • min_depth (float, optional) – Depth (m) from which a grid column counts as a ZDR column for the area and the volume. Default 1000, a radarx choice: Snyder et al. (2015, Fig. 17) contour the depth at 1, 2 and 3 km, and a single 250 m level is as likely to be noise as a column.

  • cell_area (float or xarray.DataArray, optional) – Area of a grid cell in m2. Default: the product of the median spacings of the y and x coordinates.

Returns:

xarray.Dataset – ZDR_COLUMN_MAX_DEPTH (m, of the whole map), ZDR_COLUMN_AREA (km2) of the grid columns with at least min_depth and ZDR_COLUMN_VOLUME (km3), the sum of their depths times the cell area, per leading index.

Raises:

ValueError – If the grid spacing cannot be found and cell_area is not given.

Notes

Dask and extra dimensions. The fields may have extra leading dimensions (for example time or volume): each sweep is processed on its own and the result has the same extra dimensions. Dask arrays stay lazy: the result is a dask array and nothing is computed until it is (the sweep dimensions are rechunked into one chunk).

References

Snyder, J. C., A. V. Ryzhkov, M. R. Kumjian, A. P. Khain, and J. Picca, 2015: A ZDR column detection algorithm to examine convective storm updrafts. Wea. Forecasting, 30, 1819-1844, https://doi.org/10.1175/WAF-D-15-0068.1

Examples

>>> metrics = radarx.retrieve.zdr_column_metrics(depth, min_depth=2000.0)