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); + } //----------------------------------------------------------------