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

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
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.