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

Feature 1957 ascii2nc_python #1958

Merged
merged 3 commits into from
Nov 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions met/src/tools/other/ascii2nc/ascii2nc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static ASCIIFormat ascii_format = ASCIIFormat_None;
////////////////////////////////////////////////////////////////////////

// Variables for command line arguments
static vector< ConcatString > asfile_list;
static vector<ConcatString> asfile_list;
static ConcatString ncfile;

static ConcatString config_filename(replace_path(DEFAULT_CONFIG_FILENAME));
Expand Down Expand Up @@ -234,10 +234,13 @@ int main(int argc, char *argv[]) {
file_handler->setMessageTypeMap(config_info.getMessageTypeMap());

//
// Process the files. If a configuration file was specified, do any
// extra processing specified.
// Read the input files
//
file_handler->readAsciiFiles(asfile_list);
if(!file_handler->readAsciiFiles(asfile_list)) {
mlog << Error << "\n" << program_name << "-> "
<< "encountered an error while reading input files!\n\n";
exit(1);
}

//
// Summarize the observations, if directed. We need to use a different
Expand Down