Skip to content

Commit

Permalink
#2068 Support obs_to_qc_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Oct 8, 2022
1 parent 75f3a41 commit 95ed64d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/basic/vx_config/config_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ static const char conf_key_trunc_factor[] = "gaussian_trunc_factor";
static const char conf_key_eclv_points[] = "eclv_points";
static const char conf_key_var_name_map[] = "var_name_map";
static const char conf_key_metadata_map[] = "metadata_map";
static const char conf_key_obs_to_qc_map[] = "obs_to_qc_map";
static const char conf_key_missing_thresh[] = "missing_thresh";
static const char conf_key_control_id[] = "control_id";
static const char conf_key_ens_member_ids[] = "ens_member_ids";
Expand Down
7 changes: 7 additions & 0 deletions src/basic/vx_config/config_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,13 @@ map<ConcatString,ConcatString> parse_conf_obs_name_map(Dictionary *dict) {

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

map<ConcatString,StringArray> parse_conf_obs_to_qc_map(Dictionary *dict) {
const char *method_name = "parse_conf_obs_to_qc_map() -> ";
return parse_conf_key_values_map(dict, conf_key_obs_to_qc_map, method_name);
}

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

void BootInfo::clear() {
interval = BootIntervalType_None;
rep_prop = bad_data_double;
Expand Down
1 change: 1 addition & 0 deletions src/basic/vx_config/config_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ extern std::map<ConcatString,StringArray>
extern std::map<ConcatString,StringArray> parse_conf_metadata_map(Dictionary *dict);
extern std::map<ConcatString,ConcatString>
parse_conf_obs_name_map(Dictionary *dict);
extern std::map<ConcatString,StringArray> parse_conf_obs_to_qc_map(Dictionary *dict);
extern BootInfo parse_conf_boot(Dictionary *dict);
extern RegridInfo parse_conf_regrid(Dictionary *dict, bool error_out = default_dictionary_error_out);
extern InterpInfo parse_conf_interp(Dictionary *dict, const char *);
Expand Down
1 change: 1 addition & 0 deletions src/tools/other/ioda2nc/ioda2nc_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void IODA2NCConfInfo::process_config() {
obs_name_map = parse_conf_obs_name_map(&conf);
message_type_map = parse_conf_message_type_map(&conf);
metadata_map = parse_conf_metadata_map(&conf);
obs_to_qc_map = parse_conf_obs_to_qc_map(&conf);

if ( sid_list ) delete [] sid_list;

Expand Down
1 change: 1 addition & 0 deletions src/tools/other/ioda2nc/ioda2nc_conf_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class IODA2NCConfInfo {
map<ConcatString,ConcatString> obs_name_map;
map<ConcatString,ConcatString> message_type_map;
map<ConcatString,StringArray> metadata_map;
map<ConcatString,StringArray> obs_to_qc_map;
StringArray surface_message_types;
TimeSummaryInfo timeSummaryInfo;

Expand Down

0 comments on commit 95ed64d

Please sign in to comment.