Skip to content

Commit

Permalink
Per #1020, update call to set_obs_units() in point-stat to avoid a wa…
Browse files Browse the repository at this point in the history
…rning about setting a header column to a null string.
  • Loading branch information
JohnHalleyGotway committed Jun 25, 2020
1 parent 1441668 commit 15f1e08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion met/src/tools/core/point_stat/point_stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,9 @@ void process_scores() {
shc.set_obs_var(conf_info.vx_opt[i].vx_pd.obs_info->name_attr());

// Store the observation variable units
shc.set_obs_units(conf_info.vx_opt[i].vx_pd.obs_info->units_attr());
cs = conf_info.vx_opt[i].vx_pd.obs_info->units_attr();
if(cs.empty()) cs = na_string;
shc.set_obs_units(cs);

// Set the observation level name
shc.set_obs_lev(conf_info.vx_opt[i].vx_pd.obs_info->level_attr().c_str());
Expand Down

0 comments on commit 15f1e08

Please sign in to comment.