From 7d2d4c55ffebc60de07e09406ca980584f061425 Mon Sep 17 00:00:00 2001 From: istvans Date: Tue, 5 Nov 2024 15:35:27 +0100 Subject: [PATCH] BUFR: removed unnecessary station name check --- ingest/src/ingest/bufr/NorBufr.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/ingest/src/ingest/bufr/NorBufr.cpp b/ingest/src/ingest/bufr/NorBufr.cpp index d4e1177f..cbbf77ef 100644 --- a/ingest/src/ingest/bufr/NorBufr.cpp +++ b/ingest/src/ingest/bufr/NorBufr.cpp @@ -967,30 +967,10 @@ std::ostream &operator<<(std::ostream &os, NorBufr &bufr) { os << "\n=============== S U B S E T " << subsetnum << " ===============\n\n"; for (auto v : s) { - bool skip_value = false; os << v; - if (v == DescriptorId(1128, true)) { - // Workaroung USA wigos local identifier - std::string value_str = bufr.getValue(v, std::string()); - skip_value = true; - std::string missing_wigos = - "011010100001101010000110101000011010100001101010000110101000011010" - "10000110101000011010100001101010000110101000011010100001101010"; - for (int i = 0; i < 16; i++) { - std::bitset<8> bs(value_str[i]); - if (bs.to_string() != - missing_wigos.substr(i * 8, 8)) { - skip_value = false; - break; - } - } - } DescriptorMeta *meta = v.getMeta(); if (meta) { - if (!skip_value) { - os << "\t" << bufr.getValue(v, std::string()); - } + os << "\t" << bufr.getValue(v, std::string()); if (meta->unit().find("CODE TABLE") != std::string::npos || meta->unit().find("FLAG TABLE") != std::string::npos) {