From 2f7abbba4ce59b64718699ec411bfb258b8902c3 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sun, 16 Feb 2025 21:31:34 -0500 Subject: [PATCH] Add support for _V04 products --- lib/nexrad/archive.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/nexrad/archive.py b/lib/nexrad/archive.py index 60d7ef7..a4ac784 100644 --- a/lib/nexrad/archive.py +++ b/lib/nexrad/archive.py @@ -18,6 +18,7 @@ class ArchiveDateError(Exception): class ArchiveProductType(enum.Enum): DEFAULT = 1 V03 = 3 + V04 = 4 class ArchiveProduct(): __slots__ = 'typeof', 'radar', 'timestamp', @@ -44,6 +45,8 @@ class ArchiveProduct(): if self.typeof == ArchiveProductType.V03: ret += "_V03" + elif self.typeof == ArchiveProductType.V04: + ret += "_V04" ret += ".gz" @@ -55,6 +58,8 @@ class ArchiveProduct(): if self.typeof == ArchiveProductType.V03: ret += "_V03" + elif self.typeof == ArchiveProductType.V04: + ret += "_V04" ret += ".gz"