From e0438ac8f98347c7838c97843915817bb621cf02 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sun, 2 Mar 2025 16:27:50 -0500 Subject: [PATCH] Convert RAOB wind speeds to meters/second from knots --- lib/xmet/raob.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/xmet/raob.py b/lib/xmet/raob.py index 72386c7..0c2ad6e 100644 --- a/lib/xmet/raob.py +++ b/lib/xmet/raob.py @@ -10,6 +10,9 @@ from xmet.sounding import Sounding, SoundingSample CHUNK_SEP = "\x01" CHUNK_STRIP_CHARS = "\x01\x03\x0a\x20" +def meters_second(knots: float) -> float: + return knots / 1.944 + class RAOBReaderException(Exception): ... @@ -92,7 +95,7 @@ class RAOBObs(): return { 'dir': wind_dir, - 'speed': wind_speed + 'speed': meters_second(wind_speed) } TTAA_PRESSURES = {