Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #2102 develop initialize modified_hdr_typ #2104

Merged
merged 5 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/dummy_for_action

This file was deleted.

10 changes: 3 additions & 7 deletions met/src/tools/other/ioda2nc/ioda2nc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ void process_ioda_file(int i_pb) {

ConcatString file_name, blk_prefix, blk_file, log_message;
ConcatString prefix;
char time_str[max_str_len];
ConcatString start_time_str, end_time_str;
char min_time_str[max_str_len], max_time_str[max_str_len];

Expand All @@ -378,10 +377,6 @@ void process_ioda_file(int i_pb) {
conf_info.area_mask.ny() > 0);
bool apply_poly_mask = (conf_info.poly_mask.n_points() > 0);

hdr_typ[0] = 0;

file_ut = beg_ut = end_ut = hdr_vld_ut = (unixtime) 0;

// List the IODA file being processed
mlog << Debug(1) << "Processing IODA File:\t" << ioda_files[i_pb]<< "\n";

Expand All @@ -399,17 +394,18 @@ void process_ioda_file(int i_pb) {
}

// Initialize
hdr_typ[0] = 0;
file_ut = beg_ut = end_ut = hdr_vld_ut = (unixtime) 0;
filtered_times.clear();
min_msg_ut = max_msg_ut = (unixtime) 0;
min_time_str[0] = 0;
max_time_str[0] = 0;
modified_hdr_typ[0] = 0;

// Set the file name for the IODA file
file_name << ioda_files[i_pb];


int nrecs = 0;
//int nstring = 0;
StringArray var_names, dim_names;
StringArray metadata_vars;
StringArray obs_value_vars;
Expand Down