From 6be676ad2bdfec75645ac29f448bbd9c57181462 Mon Sep 17 00:00:00 2001 From: hsoh-u Date: Thu, 10 Sep 2020 09:34:56 -0600 Subject: [PATCH] #1409 Check if there are missing variables and give the proper log message --- met/src/tools/other/madis2nc/madis2nc.cc | 383 ++++++++++++++++++++--- 1 file changed, 340 insertions(+), 43 deletions(-) diff --git a/met/src/tools/other/madis2nc/madis2nc.cc b/met/src/tools/other/madis2nc/madis2nc.cc index cf5a988d78..688eded051 100644 --- a/met/src/tools/other/madis2nc/madis2nc.cc +++ b/met/src/tools/other/madis2nc/madis2nc.cc @@ -418,17 +418,26 @@ static bool get_filtered_nc_data(NcVar var, float *data, bool status; float in_fill_value; - - if(!(status = get_nc_data(&var, data, dim, cur))) return status; - - get_nc_att(&var, (string)in_fillValue_str, in_fill_value); - for (int idx=0; idx 0) { + mlog << Error << "\n" << method_name << "Please check if the input is a METAR.\n\n"; + for (int idx=0; idx 0) { + mlog << Error << "\n" << method_name << "Please check if the input is a RAOB.\n\n"; + for (int idx=0; idx 0) { + mlog << Error << "\n" << method_name << "Please check if the input is a profiler.\n\n"; + for (int idx=0; idx 0) { + mlog << Error << "\n" << method_name << "Please check if the input is a maritime.\n\n"; + for (int idx=0; idx 0) { + mlog << Error << "\n" << method_name << "Please check if the input is a MESONET.\n\n"; + for (int idx=0; idx 0) { + mlog << Error << "\n" << method_name << "Please check if the input is a ACARS Profiles.\n\n"; + for (int idx=0; idx