diff --git a/CMakeLists.txt b/CMakeLists.txt index 3632cca5..6786a165 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,12 +16,6 @@ project( metkit LANGUAGES CXX C ) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -# set(CMAKE_COMPILE_WARNING_AS_ERROR ON) -# set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic") -# add_compile_options(-fsanitize=address) -# add_compile_options(-fsanitize=address,undefined -fno-omit-frame-pointer) -# add_link_options(-fsanitize=address) - ######################################################################################################################## ### dependencies and options diff --git a/VERSION b/VERSION index ace44233..4761f0e9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1 +1.15.2 \ No newline at end of file diff --git a/src/metkit/codes/CodesDecoder.h b/src/metkit/codes/CodesDecoder.h index b49143a1..7c774fbe 100644 --- a/src/metkit/codes/CodesDecoder.h +++ b/src/metkit/codes/CodesDecoder.h @@ -18,7 +18,7 @@ #include "eckit/exception/Exceptions.h" #include "eckit/message/Decoder.h" #include "eckit/message/Message.h" - +#include "eckit/utils/Translator.h" namespace metkit::codes { @@ -32,6 +32,13 @@ class CodesDecoder : public eckit::message::MessageDecoder { void decodeKey(codes_handle* h, codes_keys_iterator* it, const char* name, eckit::message::MetadataGatherer& gather, const eckit::message::GetMetadataOptions& options) const { + std::string keyword(name); + + if (keyword == "levelist") { + eckit::Translator t; + gather.setValue(name, t(static_cast(this)->getDouble(h, it, name))); + return; + } if (options.valueRepresentation == eckit::message::ValueRepresentation::String) { decodeString(h, it, gather, name); }