Skip to content

Commit

Permalink
Per #1918, add log messages to read_climo.cc and gen_ens_prod.cc to c…
Browse files Browse the repository at this point in the history
…larify what data is being read from which climo data files.
  • Loading branch information
JohnHalleyGotway committed Mar 1, 2022
1 parent 6e9aa5d commit a2bb93d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions met/src/libcode/vx_statistics/read_climo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ void read_climo_file(const char *climo_file, GrdFileType ctype,
}
}

// Print log message for matching record
mlog << Debug(4)
<< "Found matching " << cur_ut_cs << " \""
<< info->magic_str() << "\" climatology field in file \""
<< climo_file << "\".\n";

// Regrid, if needed
if(!(mtddf->grid() == vx_grid)) {
mlog << Debug(2)
Expand Down
14 changes: 11 additions & 3 deletions met/src/tools/other/gen_ens_prod/gen_ens_prod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ void process_ensemble() {
// Skip bad data files
if(!ens_file_vld[(*var_it)->get_file_index(i_ens)]) continue;

mlog << Debug(3) << "\n"
<< "Reading field: "
<< var_info->magic_str() << "\n";
mlog << Debug(3)
<< "\nReading ensemble field \""
<< var_info->magic_str() << "\".\n";

// Read data and track the valid data count
if(!get_data_plane(ens_file.c_str(), etype,
Expand Down Expand Up @@ -458,10 +458,18 @@ void get_climo_mean_stdev(GenEnsProdVarInfo *ens_info, int i_var,
setenv(met_ens_member_id, ens_info->get_ens_member_id(i_ens).c_str(), 1);
}

mlog << Debug(4)
<< "Reading climatology mean data for ensemble field \""
<< ens_info->get_var_info(i_ens)->magic_str() << "\".\n";

cmn_dp = read_climo_data_plane(
conf_info.conf.lookup_array(conf_key_climo_mean_field, false),
i_var, ens_valid_ut, grid);

mlog << Debug(4)
<< "Reading climatology standard deviation data for ensemble field \""
<< ens_info->get_var_info(i_ens)->magic_str() << "\".\n";

csd_dp = read_climo_data_plane(
conf_info.conf.lookup_array(conf_key_climo_stdev_field, false),
i_var, ens_valid_ut, grid);
Expand Down

0 comments on commit a2bb93d

Please sign in to comment.