Skip to content

Commit

Permalink
apps/Radx/src/RadxQpe - in Geom.cc constructor, computing _output_na …
Browse files Browse the repository at this point in the history
…from angle res, instead of setting explicitly
  • Loading branch information
mike-dixon committed Nov 15, 2023
1 parent 16318e3 commit 029f471
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions codebase/apps/Radx/src/RadxQpe/Geom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
#include <toolsa/copyright.h>
#include <cmath>

/**
* @file Geom.cc
Expand Down Expand Up @@ -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);

}

//----------------------------------------------------------------
Expand Down

0 comments on commit 029f471

Please sign in to comment.