From 34ec5da18887d4b6479a2e42f6cb1853c3c9f676 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 22 Feb 2022 11:38:10 -0600
Subject: [PATCH] snapshot...

---
 modules/icing/pireps.py | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py
index 8bc04099..d7671297 100644
--- a/modules/icing/pireps.py
+++ b/modules/icing/pireps.py
@@ -211,12 +211,12 @@ def pirep_icing_boeing_txt(filename, lon_range=[-180, 180], lat_range=[-63, 63])
             toks = line.split(' ')
             if len(toks) != 12:  # Check for line format error
                 continue
-            year = 2000 + toks[0]
-            month = toks[1]
-            day = toks[2]
-            hour = toks[3]
-            minute = toks[4]
-            second = toks[5]
+            year = 2000 + int(toks[0])
+            month = int(toks[1])
+            day = int(toks[2])
+            hour = int(toks[3])
+            minute = int(toks[4])
+            second = int(toks[5])
 
             try:
                 lat = float(toks[6])
@@ -238,7 +238,7 @@ def pirep_icing_boeing_txt(filename, lon_range=[-180, 180], lat_range=[-63, 63])
             dto = dto.replace(tzinfo=timezone.utc)
             ts = dto.timestamp()
 
-            if ice_bool[k] == 1:
+            if ice_bool == 1:
                 tup = (lat, lon, flt_alt, 1, 0, 'None', degK, spd)
                 rpts = ice_dict.get(ts)
                 if rpts is None:
@@ -259,6 +259,8 @@ def pirep_icing_boeing_txt(filename, lon_range=[-180, 180], lat_range=[-63, 63])
                     rpts.append(tup)
                 cnt_no_ice += 1
 
+    return ice_dict, no_ice_dict, None
+
 
 def pirep_icing_from_boeing_nc(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2020/', lon_range=[-180, 180], lat_range=[-63, 63]):
     flist = []
-- 
GitLab