Skip to content

Commit

Permalink
Process no wind direction
Browse files Browse the repository at this point in the history
  • Loading branch information
ssup2 committed Nov 30, 2023
1 parent 20876de commit ca617e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def convert_string_float(string: str):

def convert_wd_code_name(code: str):
'''Convert wind direction code to name'''
if str == "":
return "NONE"
return wind_direction_code_name[int(code)]

## Main
Expand Down

0 comments on commit ca617e4

Please sign in to comment.