Skip to content
Snippets Groups Projects
Commit 2bef75ae authored by tomrink's avatar tomrink
Browse files

snapshot...

parent fac2d248
No related branches found
No related tags found
No related merge requests found
...@@ -72,13 +72,16 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-63, 63]): ...@@ -72,13 +72,16 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-63, 63]):
toks = line.split(',') toks = line.split(',')
if toks[0] == 'VALID': # Skip headers (concatenated files) if toks[0] == 'VALID': # Skip headers (concatenated files)
continue continue
if len(toks) != 6: # Check for line format error # if len(toks) != 6: # Check for line format error
if len(toks) != 9: # Check for line format error
continue continue
report = toks[3] report = toks[3]
try: try:
lat = float(toks[4]) # lat = float(toks[4])
lon = float(toks[5]) # lon = float(toks[5])
lat = float(toks[7])
lon = float(toks[8])
except Exception: except Exception:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment