From 9f749af74bfda0eea8a9fd4a10d9b266e1c47881 Mon Sep 17 00:00:00 2001 From: istvans Date: Tue, 1 Oct 2024 13:36:16 +0200 Subject: [PATCH] BUFR: Skip WIGOS generation, if it already exists --- ingest/src/ingest/bufr/ESOHBufr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ingest/src/ingest/bufr/ESOHBufr.cpp b/ingest/src/ingest/bufr/ESOHBufr.cpp index 3049904d..1b064419 100644 --- a/ingest/src/ingest/bufr/ESOHBufr.cpp +++ b/ingest/src/ingest/bufr/ESOHBufr.cpp @@ -246,7 +246,9 @@ std::list ESOHBufr::msg() const { LogEntry("Missing WMO Station number after WMO block", LogLevel::WARN, __func__, bufr_id)); } - wigos_id.setWmoId(wmo_block * 1000 + wmo_station); + if (!wigos_id.getWigosLocalId().size()) { + wigos_id.setWmoId(wmo_block * 1000 + wmo_station); + } skip_platform = false; // platform_check = true; break;