From f8f5a36f4826f6387580bb6697ceafe8c358cb98 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 28 May 2022 02:02:01 -0500 Subject: [PATCH] Threshold for display of bins should be no less than 2 --- scwx-qt/source/scwx/qt/view/level2_product_view.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scwx-qt/source/scwx/qt/view/level2_product_view.cpp b/scwx-qt/source/scwx/qt/view/level2_product_view.cpp index 16ce2296..8f49eaac 100644 --- a/scwx-qt/source/scwx/qt/view/level2_product_view.cpp +++ b/scwx-qt/source/scwx/qt/view/level2_product_view.cpp @@ -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(2, momentData0->snr_threshold_raw()); // Azimuth resolution spacing: // 1 = 0.5 degrees