From bca617b318a51134aa9403b95e3bb800f6152cdd Mon Sep 17 00:00:00 2001
From: XANTRONIX Industrial <xan@xantronix.com>
Date: Sun, 2 Mar 2025 17:49:47 -0500
Subject: [PATCH] Use 200mb height calculation for <=250mb

---
 lib/xmet/raob.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/xmet/raob.py b/lib/xmet/raob.py
index c1b27fe..047c401 100644
--- a/lib/xmet/raob.py
+++ b/lib/xmet/raob.py
@@ -123,7 +123,7 @@ class RAOBObs():
     def calc_500mb_height(self, height: float) -> float:
         return 10.0 * height
 
-    def calc_200mb_height(self, height: float) -> float:
+    def calc_250mb_height(self, height: float) -> float:
         return 10.0 * (1000.0 + height)
 
     def parse_height_pressure(self, token: str):
@@ -150,10 +150,10 @@ class RAOBObs():
             height = self.calc_1000mb_height(float(num))
         elif pressure <= 850 and pressure > 500:
             height = self.calc_850mb_height(float(num))
-        elif pressure <= 500 and pressure > 200:
+        elif pressure <= 500 and pressure > 250:
             height = self.calc_500mb_height(float(num))
-        elif pressure <= 200:
-            height = self.calc_200mb_height(float(num))
+        elif pressure <= 250:
+            height = self.calc_250mb_height(float(num))
         else:
             height = float(num)