Skip to content

Commit

Permalink
Per #1904, update Grid-Stat, Ensemlbe-Stat, and Gen-Ens-Prod to pass …
Browse files Browse the repository at this point in the history
…climo data to the fractional_coverage() function.
  • Loading branch information
JohnHalleyGotway committed Sep 27, 2021
1 parent dc6c688 commit 39fa8bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion met/src/tools/core/ensemble_stat/ensemble_stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,8 @@ void track_counts(int i_vx, const DataPlane &dp) {
fractional_coverage(dp, frac_dp,
conf_info.nbrhd_prob.width[j],
conf_info.nbrhd_prob.shape,
ThreshBuf[i], conf_info.nbrhd_prob.vld_thresh);
ThreshBuf[i], (const DataPlane *) 0, (const DataPlane *) 0,
conf_info.nbrhd_prob.vld_thresh);

// Increment counts
const double *Frac = frac_dp.data();
Expand Down
2 changes: 2 additions & 0 deletions met/src/tools/core/grid_stat/grid_stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ void process_scores() {
fractional_coverage(fcst_dp, fcst_dp_smooth,
nbrhd->width[j], nbrhd->shape,
conf_info.vx_opt[i].fcat_ta[k],
&cmn_dp, &csd_dp,
nbrhd->vld_thresh);

// Compute the binary threshold field
Expand Down Expand Up @@ -1431,6 +1432,7 @@ void process_scores() {
fractional_coverage(obs_dp, obs_dp_smooth,
nbrhd->width[j], nbrhd->shape,
conf_info.vx_opt[i].ocat_ta[k],
&cmn_dp, &csd_dp,
nbrhd->vld_thresh);

// Compute the binary threshold field
Expand Down
3 changes: 2 additions & 1 deletion met/src/tools/other/gen_ens_prod/gen_ens_prod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ void track_counts(int i_var, const DataPlane &ens_dp, bool is_ctrl,
fractional_coverage(ens_dp, frac_dp,
conf_info.nbrhd_prob.width[j],
conf_info.nbrhd_prob.shape,
thr_buf[i], conf_info.nbrhd_prob.vld_thresh);
thr_buf[i], &cmn_dp, &csd_dp,
conf_info.nbrhd_prob.vld_thresh);

// Increment counts
for(k=0; k<nxy; k++) {
Expand Down

0 comments on commit 39fa8bc

Please sign in to comment.