Skip to content
Snippets Groups Projects
Commit 4b5415d8 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 5290937a
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ def pireps(filename):
lats = []
lons = []
alts = []
times = []
no_ice_reports = []
ice_reports = []
with open(filename) as file:
......@@ -88,6 +89,9 @@ def pireps(filename):
if s.find('N/A') >= 0:
continue
dto = datetime.datetime.strptime(toks[0], '%Y%m%d%H%M').replace(tzinfo=timezone.utc)
timestmp = dto.timestamp()
if len(re.findall(NO_ICE, s)) != 0:
no_ice_reports.append(cnt)
else:
......@@ -110,6 +114,7 @@ def pireps(filename):
lats.append(lat)
lons.append(lon)
alts.append(fl)
times.append(timestmp)
cnt += 1
lats = np.array(lats)
......
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