wradlib.qual.get_bb_ratio

wradlib.qual.get_bb_ratio(bb_height, bb_width, quality, zp_r)

Returns the Bright Band ratio of each PR bin

With PR, we refer to precipitation radars based on space-born platforms such as TRMM or GPM.

This function basically applies the Bright Band (BB) information as provided by the corresponding PR datasets per beam, namely BB height and width, as well as quality flags of the PR beams. A BB ratio of <= 0 indicates that a bin is located below the melting layer (ML), >=1 above the ML, and in between 0 and 1 inside the ML.

New in version 0.10.0.

Parameters:
  • bb_height (numpy.ndarray) – Array of shape (nscans, nbeams) containing the PR beams’ BB heights in meters.
  • bb_width (numpy.ndarray) – Array of shape (nscans, nbeams) containing the PR beams’ BB widths in meters.
  • quality (numpy.ndarray) – Array of shape (nscans, nbeams) containing the PR beams’ BB quality index.
  • zp_r (numpy.ndarray) – Array of PR bin altitudes of shape (nbeams, nbins).
Returns:

  • ratio (numpy.ndarray) – Array of shape (nscans, nbeams, nbins) containing the BB ratio of every PR bin. - ratio <= 0: below ml - 0 < ratio < 1: between ml - 1 <= ratio: above ml
  • ibb (numpy.ndarray) – Boolean array containing the indices of PR bins connected to the BB.