Skip to content

Commit

Permalink
#1943 Parse seeps_p1_thresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Nov 15, 2022
1 parent d2c3e97 commit 755d17f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/tools/core/grid_stat/grid_stat_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,8 @@ void GridStatVxOpt::clear() {

hss_ec_value = bad_data_double;
rank_corr_flag = false;
seeps_qc = false;

seeps_p1_thresh.clear();

for(i=0; i<n_txt; i++) output_flag[i] = STATOutputType_None;

Expand Down Expand Up @@ -833,8 +833,8 @@ void GridStatVxOpt::process_config(
// Conf: rank_corr_flag
rank_corr_flag = odict.lookup_bool(conf_key_rank_corr_flag);

// Conf: seeps_qc
seeps_qc = odict.lookup_bool(conf_key_seeps_qc);
// Conf: threshold for SEEPS p1
seeps_p1_thresh = odict.lookup_thresh(conf_key_seeps_p1_thresh);

// Conf: nc_pairs_flag
parse_nc_info(odict);
Expand Down
3 changes: 2 additions & 1 deletion src/tools/core/grid_stat/grid_stat_conf_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ class GridStatVxOpt {
ThreshArray owind_ta; // obs wind speed thresholds
SetLogic wind_logic; // wind speed field logic

SingleThresh seeps_p1_thresh; // SEESP p1 threshold

StringArray mask_grid; // Masking grid strings
StringArray mask_poly; // Masking polyline strings

Expand Down Expand Up @@ -194,7 +196,6 @@ class GridStatVxOpt {

double hss_ec_value; // HSS expected correct value
bool rank_corr_flag; // Flag for computing rank correlations
bool seeps_qc; // enable SEEPS QC

// Output file options
STATOutputType output_flag[n_txt]; // Flag for each output line type
Expand Down

0 comments on commit 755d17f

Please sign in to comment.