Skip to content

Commit

Permalink
Per issue #1858 in process_config(), cleaned up sections that set obs…
Browse files Browse the repository at this point in the history
…_qty_inc_filt and obs_qty_exc_filt. Fixed spacing issue. SL
  • Loading branch information
Seth Linden committed Sep 9, 2021
1 parent 787e677 commit 94e2287
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions met/src/tools/core/point_stat/point_stat_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -919,24 +919,17 @@ void PointStatVxOpt::process_config(GrdFileType ftype,
// Conf: obs_qty_inc
// Check for old "obs_quality" field
StringArray obs_qty_sa = odict.lookup_string_array(conf_key_obs_qty);
//cout << "obs_qty_sa = " << write_css(obs_qty_sa) << "\n";
cout << "obs_qty_sa.n() = " << obs_qty_sa.n() << "\n";

// Send warning if "obs_quality" is still being used
// Use it instead of "obs_quality_inc" if it is in config file
if(obs_qty_sa.n() > 0){
mlog << Warning << "\nPointStatVxOpt::process_config() -> "
<< "The field \""
<< conf_key_obs_qty
<< "\" is deprecated "
<< "use \"" << conf_key_obs_qty_inc << "\" instead.\n\n";

vx_pd.set_obs_qty_inc_filt(parse_conf_obs_qty(&odict));

} else {
cout << "Using " << conf_key_obs_qty_inc << "\n";
vx_pd.set_obs_qty_inc_filt(parse_conf_obs_qty_inc(&odict));
}
mlog << Warning << "\nPointStatVxOpt::process_config() -> "
<< "The field \""
<< conf_key_obs_qty
<< "\" is deprecated "
<< "use \"" << conf_key_obs_qty_inc << "\" instead.\n\n";
vx_pd.set_obs_qty_inc_filt(parse_conf_obs_qty(&odict));
} else
vx_pd.set_obs_qty_inc_filt(parse_conf_obs_qty_inc(&odict));

// Conf: obs_qty_exc
vx_pd.set_obs_qty_exc_filt(parse_conf_obs_qty_exc(&odict));
Expand Down

0 comments on commit 94e2287

Please sign in to comment.