diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index b4e63f4e7041b674563547a7961c9a635461917c..3250397fd9b7a74804aa4e67bd9ebd7817307dd2 100644 --- a/modules/icing/pireps.py +++ b/modules/icing/pireps.py @@ -72,13 +72,16 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-63, 63]): toks = line.split(',') if toks[0] == 'VALID': # Skip headers (concatenated files) 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 report = toks[3] try: - lat = float(toks[4]) - lon = float(toks[5]) + # lat = float(toks[4]) + # lon = float(toks[5]) + lat = float(toks[7]) + lon = float(toks[8]) except Exception: continue