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

start support for Boeing icing data...

parent c5d0d49e
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,8 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2 ...@@ -182,7 +182,8 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2
hours = h5f['hour'][:] hours = h5f['hour'][:]
mins = h5f['minute'][:] mins = h5f['minute'][:]
secs = h5f['second'][:] secs = h5f['second'][:]
flt_levs = h5f flt_levs = h5f['aircraft_ft'][:]
flt_levs *= (100 * 0.3048)
except Exception as e: except Exception as e:
print(e) print(e)
h5f.close() h5f.close()
...@@ -194,7 +195,7 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2 ...@@ -194,7 +195,7 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2
dto = dto.replace(tzinfo=timezone.utc) dto = dto.replace(tzinfo=timezone.utc)
ts = dto.timestamp() ts = dto.timestamp()
if ice_bool[k]: if ice_bool[k] == 1:
tup = (lats[k], lons[k], flt_levs[k], 1, 0, 'None') tup = (lats[k], lons[k], flt_levs[k], 1, 0, 'None')
ice_dict[ts] = tup ice_dict[ts] = tup
cnt_ice += 1 cnt_ice += 1
......
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