Skip to content

Commit

Permalink
Per #2583, simplify ObsErrorEntry::variance() implementation. For the…
Browse files Browse the repository at this point in the history
… distribution type of NONE, return a variance of 0.0 rather than bad data, as discussed with @michelleharrold and @JeffBeck-NOAA on 3/8/2024.
  • Loading branch information
MET Tools Test Account committed Mar 8, 2024
1 parent 14411de commit 449426c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/libcode/vx_statistics/obs_error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,7 @@ void ObsErrorEntry::dump(ostream & out, int depth) const {
////////////////////////////////////////////////////////////////////////

double ObsErrorEntry::variance() const {
double var = bad_data_double;

if(dist_type != DistType_None) {
var = dist_var(dist_type, dist_parm[0], dist_parm[1]);
}

return(var);
return dist_var(dist_type, dist_parm[0], dist_parm[1]);
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 449426c

Please sign in to comment.