Convert RAOB wind speeds to meters/second from knots

This commit is contained in:
XANTRONIX 2025-03-02 16:27:50 -05:00
parent edf1af526f
commit e0438ac8f9

View file

@ -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 = {