Skip to content

Commit

Permalink
Per issue #2206, in set() function, added checks for crps_emp and crp…
Browse files Browse the repository at this point in the history
…s_emp_fair, for values of 0.0. SL
  • Loading branch information
Seth Linden committed Sep 12, 2022
1 parent 8db8ce8 commit f9e17db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libcode/vx_statistics/ens_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,11 @@ void ECNTInfo::set(const PairDataEnsemble &pd) {

// Compute empirical CRPS scores
crps_emp = pd.crps_emp_na.wmean(pd.wgt_na);
// Stub in for now?
if(is_eq(crps_emp, 0.0)) crps_emp = 0.0;

crps_emp_fair = pd.crps_emp_fair_na.wmean(pd.wgt_na);
if(is_eq(crps_emp_fair, 0.0)) crps_emp_fair = 0.0;

crpscl_emp = pd.crpscl_emp_na.wmean(pd.wgt_na);
crpss_emp = (is_bad_data(crps_emp) ||
is_bad_data(crpscl_emp) ||
Expand Down

0 comments on commit f9e17db

Please sign in to comment.