Skip to content

Commit

Permalink
Per #2893, add option to default config files and fix compilation err…
Browse files Browse the repository at this point in the history
…ors.
  • Loading branch information
JohnHalleyGotway committed Oct 15, 2024
1 parent 399e609 commit 168eef4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions data/config/EnsembleStatConfig_default
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ message_type_group_map = [
{ key = "ONLYSF"; val = "ADPSFC,SFCSHP"; }
];

obtype_as_obs_message_type_flag = FALSE;

//
// Ensemble bin sizes
// May be set separately in each "obs.field" entry
Expand Down
2 changes: 2 additions & 0 deletions data/config/PointStatConfig_default
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ message_type_group_map = [
{ key = "WATERSF"; val = "SFCSHP"; }
];

obtype_as_obs_message_type_flag = FALSE;

////////////////////////////////////////////////////////////////////////////////

//
Expand Down
2 changes: 1 addition & 1 deletion src/libcode/vx_stat_out/stat_columns.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ extern void write_mpr_row (StatHdrColumns &, const PairDataPoint *, STATOutput
bool update_obtype, bool update_thresh = true);
extern void write_seeps_row (StatHdrColumns &, const SeepsAggScore *, STATOutputType,
AsciiTable &, int &, AsciiTable &, int &,
bool update_obtype, bool update_thresh = true);
bool update_thresh = true);
extern void write_seeps_mpr_row (StatHdrColumns &, const PairDataPoint *, STATOutputType,
AsciiTable &, int &, AsciiTable &, int &,
bool update_obtype, bool update_thresh = true);
Expand Down
4 changes: 2 additions & 2 deletions src/tools/core/ensemble_stat/ensemble_stat_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void EnsembleStatConfInfo::clear() {
vld_ens_thresh = bad_data_double;
vld_data_thresh = bad_data_double;
msg_typ_group_map.clear();
obtype_as_obs_message_type = false;
obtype_as_obs_message_type_flag = false;
msg_typ_sfc.clear();
mask_area_map.clear();
mask_sid_map.clear();
Expand Down Expand Up @@ -176,7 +176,7 @@ void EnsembleStatConfInfo::process_config(GrdFileType etype,

// Conf: obtype_as_obs_message_type_flag
obtype_as_obs_message_type_flag =
conf.lookup_bool(conf_key_obtype_as_obs_message_type_flag);
conf.lookup_bool(conf_key_obtype_as_obs_message_type_flag);

// Conf: ens_member_ids
ens_member_ids = parse_conf_ens_member_ids(&conf);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/core/ensemble_stat/ensemble_stat_conf_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class EnsembleStatConfInfo {
// Message type groups that should be processed together
std::map<ConcatString,StringArray> msg_typ_group_map;
StringArray msg_typ_sfc;
bool obtype_as_obs_message_type;
bool obtype_as_obs_message_type_flag;

// Mapping of mask names to MaskPlanes
std::map<ConcatString,MaskPlane> mask_area_map;
Expand Down

0 comments on commit 168eef4

Please sign in to comment.