Threshold for display of bins should be no less than 2

This commit is contained in:
Dan Paulat 2022-05-28 02:02:01 -05:00
parent be2f9fe674
commit f8f5a36f48

View file

@ -443,8 +443,9 @@ void Level2ProductView::ComputeSweep()
cfpMoments.shrink_to_fit();
}
// Compute threshold at which to display an individual bin
const uint16_t snrThreshold = momentData0->snr_threshold_raw();
// Compute threshold at which to display an individual bin (minimum of 2)
const uint16_t snrThreshold =
std::max<int16_t>(2, momentData0->snr_threshold_raw());
// Azimuth resolution spacing:
// 1 = 0.5 degrees