Skip to content

Commit

Permalink
Per #2856, update logic for counting the maximum number of PCT, PRC, …
Browse files Browse the repository at this point in the history
…PJC, and PSTD lines. Need to multiply by the number of climo cdf bins.
  • Loading branch information
JohnHalleyGotway committed Jun 18, 2024
1 parent 979d5ab commit 376b0c0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tools/core/ensemble_stat/ensemble_stat_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1112,28 +1112,28 @@ int EnsembleStatVxOpt::n_txt_row(int i_txt_row) const {
case(i_prc):

// Maximum number of PCT, PJC, and PRC lines possible =
// Point Vx: Message Types * Masks * Interpolations * Categorical Thresholds
// Grid Vx: Masks * Interpolations * Categorical Thresholds
// Point Vx: Message Types * Masks * Interpolations * Categorical Thresholds * Climo CDF Bins
// Grid Vx: Masks * Interpolations * Categorical Thresholds * Climo CDF Bins
n = (get_n_msg_typ() + 1) * get_n_mask() * get_n_interp() *
get_n_prob_cat_thresh();
max(fcat_ta.n(), 1) * cdf_info.cdf_ta.n();
break;

case(i_pstd):

// Maximum number of PSTD lines possible =
// Point Vx: Message Types * Masks * Interpolations * Categorical Thresholds * Alphas
// Grid Vx: Masks * Interpolations * Categorical Thresholds * Alphas
// Point Vx: Message Types * Masks * Interpolations * Categorical Thresholds * Climo CDF Bins * Alphas
// Grid Vx: Masks * Interpolations * Categorical Thresholds * Climo CDF Bins * Alphas
n = (get_n_msg_typ() + 1) * get_n_mask() * get_n_interp() *
get_n_prob_cat_thresh() * get_n_ci_alpha();
max(fcat_ta.n(), 1) * cdf_info.cdf_ta.n() * get_n_ci_alpha();
break;

case(i_eclv):

// Maximum number of ECLV lines possible =
// Point Vx: Message Types * Masks * Interpolations * Probability Thresholds
// Grid Vx: Masks * Interpolations * Probability Thresholds
// Point Vx: Message Types * Masks * Interpolations * Probability Thresholds * Climo CDF Bins
// Grid Vx: Masks * Interpolations * Probability Thresholds * Climo CDF Bins
n = (get_n_msg_typ() + 1) * get_n_mask() * get_n_interp() *
get_n_prob_cat_thresh() * get_n_prob_cat_thresh();
get_n_prob_cat_thresh() * get_n_prob_cat_thresh() * cdf_info.cdf_ta.n();
break;

default:
Expand Down

0 comments on commit 376b0c0

Please sign in to comment.