From 36dcd603ca1e01e5906de21b97a521a275d0cc4f Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sat, 29 Mar 2025 16:55:50 -0400 Subject: [PATCH] Fix TTBB parser to stop parsing at tropopause --- lib/xmet/raob.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/xmet/raob.py b/lib/xmet/raob.py index 5ffad9d..8315a65 100644 --- a/lib/xmet/raob.py +++ b/lib/xmet/raob.py @@ -440,6 +440,12 @@ class RAOBObs(): while i < len(self.tokens): prefix = self.tokens[i][0:2] + # + # Stop parsing at the tropopause. + # + if prefix == '88': + break + if prefix in self.PRESSURE_CODES: samples.append(self.parse_ttbb_sample(self.tokens[i:i+2]))