Convert RAOB wind speeds to meters/second from knots
This commit is contained in:
parent
edf1af526f
commit
e0438ac8f9
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,9 @@ from xmet.sounding import Sounding, SoundingSample
|
||||||
CHUNK_SEP = "\x01"
|
CHUNK_SEP = "\x01"
|
||||||
CHUNK_STRIP_CHARS = "\x01\x03\x0a\x20"
|
CHUNK_STRIP_CHARS = "\x01\x03\x0a\x20"
|
||||||
|
|
||||||
|
def meters_second(knots: float) -> float:
|
||||||
|
return knots / 1.944
|
||||||
|
|
||||||
class RAOBReaderException(Exception):
|
class RAOBReaderException(Exception):
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -92,7 +95,7 @@ class RAOBObs():
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'dir': wind_dir,
|
'dir': wind_dir,
|
||||||
'speed': wind_speed
|
'speed': meters_second(wind_speed)
|
||||||
}
|
}
|
||||||
|
|
||||||
TTAA_PRESSURES = {
|
TTAA_PRESSURES = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue