From 0481281680a06243cad15a14c8f365029816d6ed Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Fri, 30 Aug 2024 23:04:16 -0500 Subject: [PATCH] Threat category of significant should be treated as considerable per latest NWSI --- wxdata/source/scwx/awips/text_product_message.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/wxdata/source/scwx/awips/text_product_message.cpp b/wxdata/source/scwx/awips/text_product_message.cpp index 5128aee8..541a1a1a 100644 --- a/wxdata/source/scwx/awips/text_product_message.cpp +++ b/wxdata/source/scwx/awips/text_product_message.cpp @@ -390,9 +390,21 @@ void ParseCodedInformation(std::shared_ptr segment, it->substr(threatTagIt->length()); ThreatCategory threatCategory = GetThreatCategory(threatCategoryName); - if (threatCategory == ThreatCategory::Unknown) + + switch (threatCategory) { + case ThreatCategory::Significant: + // "Significant" is no longer an official tag, and has largely been + // replaced with "Considerable". + threatCategory = ThreatCategory::Considerable; + break; + + case ThreatCategory::Unknown: threatCategory = ThreatCategory::Base; + break; + + default: + break; } segment->threatCategory_ = threatCategory;