version 2.1

This commit is contained in:
Junzi Sun
2019-04-16 16:56:49 +02:00
parent c348a2295d
commit 8ded3500d4
3 changed files with 27 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ from pyModeS.decoder.common import hex2bin, bin2int, data, allzeros, wrongstatus
def is45(msg):
"""Check if a message is likely to be BDS code 4,5.
Meteorological harzard report
Meteorological hazard report
Args:
msg (String): 28 bytes hexadecimal message string
@@ -220,5 +220,5 @@ def rh45(msg):
d = hex2bin(data(msg))
if d[38] == '0':
return None
rh = bin2int(d[39:51])
rh = bin2int(d[39:51]) * 16
return rh