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

snapshot...

parent 4463e915
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,6 @@ def pireps(filename, lon_range=[-180, 180], lat_range=[-55, 55]): ...@@ -116,7 +116,6 @@ def pireps(filename, lon_range=[-180, 180], lat_range=[-55, 55]):
ice_reports.append(cnt) ice_reports.append(cnt)
so = re.search(ICE_LVL, s) so = re.search(ICE_LVL, s)
if so is not None: if so is not None:
ia, ib = so.span()
lvl_a, lvl_b = so.group().split('-') lvl_a, lvl_b = so.group().split('-')
if lvl_a.find('FL') >= 0: if lvl_a.find('FL') >= 0:
lvl_a = float(lvl_a[2:]) * 100 * 0.3048 lvl_a = float(lvl_a[2:]) * 100 * 0.3048
...@@ -133,6 +132,7 @@ def pireps(filename, lon_range=[-180, 180], lat_range=[-55, 55]): ...@@ -133,6 +132,7 @@ def pireps(filename, lon_range=[-180, 180], lat_range=[-55, 55]):
alts.append(fl) alts.append(fl)
times.append(timestmp) times.append(timestmp)
cnt += 1 cnt += 1
print(len(ice_reports), len(no_ice_reports)) print(len(ice_reports), len(no_ice_reports))
lats = np.array(lats) lats = np.array(lats)
lons = np.array(lons) lons = np.array(lons)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment