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

minor

parent 04362855
Branches
No related tags found
No related merge requests found
......@@ -195,6 +195,11 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2
nrpts = ice_bool.shape[0]
if nrpts > 0:
for k in range(nrpts):
if lons[k] < lon_range[0] or lons[k] > lon_range[1]:
continue
if lats[k] < lat_range[0] or lats[k] > lat_range[1]:
continue
dto = datetime.datetime(year=years[k], month=mons[k], day=days[k], hour=hours[k], minute=mins[k], second=secs[k], tzinfo=pac_tz)
dto = dto.replace(tzinfo=timezone.utc)
ts = dto.timestamp()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment