Skip to content

Commit

Permalink
Per #1761. In set_perc(), after testing cleaned up code. SL
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Linden committed Oct 29, 2021
1 parent d390942 commit 1f3020d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions met/src/basic/vx_config/threshold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1132,11 +1132,11 @@ else {

if ( fbias_fcst ) {
if ( op == thresh_le || op == thresh_lt ) PT_new = PT * fbias_val;
else if ( op == thresh_ge || op == thresh_gt ) PT_new = PT / fbias_val;
else if ( op == thresh_ge || op == thresh_gt ) PT_new = PT / fbias_val;
}
else {
if ( op == thresh_le || op == thresh_lt ) PT_new = PT / fbias_val;
else if ( op == thresh_ge || op == thresh_gt ) PT_new = PT * fbias_val;
else if ( op == thresh_ge || op == thresh_gt ) PT_new = PT * fbias_val;
}

if ( PT_new > 100.0 ) {
Expand All @@ -1145,6 +1145,7 @@ else {
<< " threshold \"" << s << "\" the required percentile of "
<< PT_new << " exceeds the maximum possible value. "
<< "Resetting to 100.\n\n";

PT_new = 100.0;
}

Expand Down

0 comments on commit 1f3020d

Please sign in to comment.