Fix corner case on parsing IGRA sounding elapsed time
This commit is contained in:
parent
d564391d6b
commit
fa90b89742
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ def etime_to_seconds(etime: str) -> int:
|
|||
if etime == '-8888' or etime == '-9999':
|
||||
return
|
||||
|
||||
return 60 * int(etime[0:2]) + int(etime[2:])
|
||||
minutes = 0 if etime[0:3] == ' ' else int(etime[0:3])
|
||||
|
||||
return 60 * minutes + int(etime[3:])
|
||||
|
||||
def parse_num(num: str, scale: float) -> float:
|
||||
if num == '-8888' or num == '-9999':
|
||||
|
|
Loading…
Add table
Reference in a new issue