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

data inside file referenced to UTC, not Pacific. File names reference Pacific time.

parent 4d254c04
No related branches found
No related tags found
No related merge requests found
......@@ -161,9 +161,6 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-63, 63]):
def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2020/', lon_range=[-180, 180], lat_range=[-63, 63]):
# This data is relative to US Pacific time
pac_tz = tz.gettz('America/Los_Angeles')
flist = []
for path in Path(dirname).rglob('*.nc'):
flist.append(path)
......@@ -202,7 +199,7 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2
continue
dto = datetime.datetime(year=years[k], month=mons[k], day=days[k], hour=hours[k], minute=mins[k], second=secs[k])
dto = dto.replace(tzinfo=pac_tz)
dto = dto.replace(tzinfo=timezone.utc)
ts = dto.timestamp()
if ice_bool[k] == 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