From 8f624dd7818434cc9bbbe8d9e081547dae4d703b Mon Sep 17 00:00:00 2001 From: Seth Linden Date: Fri, 10 Sep 2021 10:56:23 -0600 Subject: [PATCH] Per issue #1858: in process_config(): added code to set_obs_qty_inc_filt and set_obs_qty_exc_filt. Also added code to check if old obs_quality is being used, if so, set it to obs_qty_inc_filt. SL --- .../ensemble_stat/ensemble_stat_conf_info.cc | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/met/src/tools/core/ensemble_stat/ensemble_stat_conf_info.cc b/met/src/tools/core/ensemble_stat/ensemble_stat_conf_info.cc index 9dcf7154d3..51e0cfaad1 100644 --- a/met/src/tools/core/ensemble_stat/ensemble_stat_conf_info.cc +++ b/met/src/tools/core/ensemble_stat/ensemble_stat_conf_info.cc @@ -829,9 +829,24 @@ void EnsembleStatVxOpt::process_config(GrdFileType ftype, Dictionary &fdict, // Conf: sid_exc vx_pd.set_sid_exc_filt(parse_conf_sid_list(&odict, conf_key_sid_exc)); - // Conf: obs_qty - vx_pd.set_obs_qty_filt(parse_conf_obs_qty(&odict)); - + // Conf: obs_qty_inc + // Check for old "obs_quality" field + StringArray obs_qty_sa = odict.lookup_string_array(conf_key_obs_qty); + // 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 + 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)); + return; }