From 029f471e9f271b956936532ce51f375a90c7fdca Mon Sep 17 00:00:00 2001 From: mike-dixon Date: Tue, 14 Nov 2023 19:40:19 -0700 Subject: [PATCH] apps/Radx/src/RadxQpe - in Geom.cc constructor, computing _output_na from angle res, instead of setting explicitly --- codebase/apps/Radx/src/RadxQpe/Geom.cc | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/codebase/apps/Radx/src/RadxQpe/Geom.cc b/codebase/apps/Radx/src/RadxQpe/Geom.cc index f12d1a27f4..1ab8b750af 100644 --- a/codebase/apps/Radx/src/RadxQpe/Geom.cc +++ b/codebase/apps/Radx/src/RadxQpe/Geom.cc @@ -22,6 +22,7 @@ // ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* #include +#include /** * @file Geom.cc @@ -64,24 +65,8 @@ Geom::Geom(bool isIndexed, double angleResDeg, } } - if (outputAngleResDeg == 1.0) - { - _output_na = 360; - } - else if (outputAngleResDeg == 0.5) - { - _output_na = 720; - } - else if (outputAngleResDeg == 2.0) - { - _output_na = 180; - } - else - { - LOGF(LogMsg::ERROR, "COnfigured angle res=%lf only allow 0.5,1,2", - outputAngleResDeg); - exit(1); - } + _output_na = (int) ((360.0 / fabs(outputAngleResDeg)) + 0.5); + } //----------------------------------------------------------------