From 4c32176f1b96e24d4b6a467bfd9ca45791aade73 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 9 Sep 2021 17:51:53 -0500 Subject: [PATCH] snapshot... --- modules/icing/pireps.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index 678929b4..07c77f71 100644 --- a/modules/icing/pireps.py +++ b/modules/icing/pireps.py @@ -40,8 +40,11 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-63, 63]): continue report = toks[3] - lat = float(toks[4]) - lon = float(toks[5]) + try: + lat = float(toks[4]) + lon = float(toks[5]) + except Exception: + continue if lon < lon_range[0] or lon > lon_range[1]: continue -- GitLab