Skip to content

Commit

Permalink
Per #1451, the ECNT line type will no longer be written separately fo…
Browse files Browse the repository at this point in the history
…r each CDF bin. Removing the bin-related arguments from the write_ecnt functions.
  • Loading branch information
JohnHalleyGotway committed Feb 18, 2021
1 parent e39201d commit c42d500
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions met/src/libcode/vx_stat_out/stat_columns.cc
Expand Up @@ -1600,10 +1600,9 @@ void write_isc_row(StatHdrColumns &shc, const ISCInfo &isc_info,
////////////////////////////////////////////////////////////////////////

void write_ecnt_row(StatHdrColumns &shc, const ECNTInfo &ecnt_info,
STATOutputType out_type, int i_bin, int n_bin,
STATOutputType out_type,
AsciiTable &stat_at, int &stat_row,
AsciiTable &txt_at, int &txt_row) {
ConcatString mask_name = shc.get_mask();

// ECNT line type
shc.set_line_type(stat_ecnt_str);
Expand All @@ -1617,10 +1616,6 @@ void write_ecnt_row(StatHdrColumns &shc, const ECNTInfo &ecnt_info,
shc.set_cov_thresh(na_str);
shc.set_alpha(bad_data_double);

// Update the mask name, if needed.
ConcatString cs = append_climo_bin(mask_name, i_bin, n_bin);
shc.set_mask(cs.c_str());

// Write the header columns
write_header_cols(shc, stat_at, stat_row);

Expand All @@ -1638,9 +1633,6 @@ void write_ecnt_row(StatHdrColumns &shc, const ECNTInfo &ecnt_info,
// Increment the STAT row counter
stat_row++;

// Reset the mask name
shc.set_mask(mask_name.c_str());

return;
}

Expand Down Expand Up @@ -1681,9 +1673,6 @@ void write_rps_row(StatHdrColumns &shc, const RPSInfo &rps_info,
// Increment the STAT row counter
stat_row++;

// Reset the mask name
shc.set_mask(mask_name.c_str());

return;
}

Expand Down
2 changes: 1 addition & 1 deletion met/src/libcode/vx_stat_out/stat_columns.h
Expand Up @@ -107,7 +107,7 @@ extern void write_mpr_row (StatHdrColumns &, const PairDataPoint *, STATOutput
extern void write_isc_row (StatHdrColumns &, const ISCInfo &, STATOutputType,
AsciiTable &, int &, AsciiTable &, int &);
extern void write_ecnt_row (StatHdrColumns &, const ECNTInfo &, STATOutputType,
int, int, AsciiTable &, int &, AsciiTable &, int &);
AsciiTable &, int &, AsciiTable &, int &);
extern void write_rps_row (StatHdrColumns &, const RPSInfo &, STATOutputType,
AsciiTable &, int &, AsciiTable &, int &);
extern void write_rhist_row (StatHdrColumns &, const PairDataEnsemble *, STATOutputType,
Expand Down
2 changes: 1 addition & 1 deletion met/src/tools/core/point_stat/point_stat.cc
Expand Up @@ -1832,7 +1832,7 @@ void do_hira_ens(int i_vx, const PairDataPoint *pd_ptr) {

write_ecnt_row(shc, ecnt_info,
conf_info.vx_opt[i_vx].output_flag[i_ecnt],
0, 1, stat_at, i_stat_row,
stat_at, i_stat_row,
txt_at[i_ecnt], i_txt_row[i_ecnt]);
} // end if ECNT

Expand Down

0 comments on commit c42d500

Please sign in to comment.