wradlib.qual.get_bb_ratio#

wradlib.qual.get_bb_ratio(bb_height, bb_width, quality, zp_r)[source]#

Returns the Bright Band ratio of each PR bin

With SR, 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 SR datasets per beam, namely BB height and width, as well as quality flags of the SR 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.

Parameters:
  • bb_height (numpy.ndarray) – Array of shape (nscans, nbeams) containing the SR beams’ BB heights in meters.

  • bb_width (numpy.ndarray) – Array of shape (nscans, nbeams) containing the SR beams’ BB widths in meters.

  • quality (numpy.ndarray) – Array of shape (nscans, nbeams) containing the SR beams’ BB quality index.

  • zp_r (numpy.ndarray) – Array of SR bin altitudes of shape (nscans, nbeams, nbins).

Returns:

  • ratio (numpy.ndarray) – Array of shape (nscans, nbeams, nbins) containing the BB ratio of every SR bin. - ratio <= 0: below ml - 0 < ratio < 1: between ml - 1 <= ratio: above ml

  • ibb (numpy.ndarray) – Boolean array containing the indices of SR bins connected to the BB.