From 5b10ce73aa7062c7af5093b628a64f591333aded Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 17 Dec 2021 16:15:28 -0600 Subject: [PATCH] minor --- modules/icing/pireps.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index 2ae8cc22..92f264f7 100644 --- a/modules/icing/pireps.py +++ b/modules/icing/pireps.py @@ -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() -- GitLab