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

snapshot...

parent 5290937a
Branches
No related tags found
No related merge requests found
...@@ -50,6 +50,7 @@ def pireps(filename): ...@@ -50,6 +50,7 @@ def pireps(filename):
lats = [] lats = []
lons = [] lons = []
alts = [] alts = []
times = []
no_ice_reports = [] no_ice_reports = []
ice_reports = [] ice_reports = []
with open(filename) as file: with open(filename) as file:
...@@ -88,6 +89,9 @@ def pireps(filename): ...@@ -88,6 +89,9 @@ def pireps(filename):
if s.find('N/A') >= 0: if s.find('N/A') >= 0:
continue 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: if len(re.findall(NO_ICE, s)) != 0:
no_ice_reports.append(cnt) no_ice_reports.append(cnt)
else: else:
...@@ -110,6 +114,7 @@ def pireps(filename): ...@@ -110,6 +114,7 @@ def pireps(filename):
lats.append(lat) lats.append(lat)
lons.append(lon) lons.append(lon)
alts.append(fl) alts.append(fl)
times.append(timestmp)
cnt += 1 cnt += 1
lats = np.array(lats) lats = np.array(lats)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment