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

snapshot...

parent 4596a88c
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ from icing.pireps import pirep_icing
import numpy as np
import pickle
import os
from util.util import get_time_tuple_utc, GenericException
from util.util import get_time_tuple_utc, GenericException, add_time_range_to_filename
from aeolus.datasource import CLAVRx, GOESL1B
from util.geos_nav import GEOSNavigation
import h5py
......@@ -195,6 +195,9 @@ def run(pirep_dct, outfile=None, outfile_l1b=None):
time_s.append(time)
fl_alt_s.append(fl)
t_start = time_s[0]
t_end = time_s[len(time_s)-1]
data_dct = {}
for ds_name in ds_list:
data_dct[ds_name] = np.array(ds_grd_dct[ds_name])
......@@ -204,6 +207,7 @@ def run(pirep_dct, outfile=None, outfile_l1b=None):
fl_alt_s = np.array(fl_alt_s)
if outfile is not None:
outfile = add_time_range_to_filename(outfile, t_start, t_end)
create_file(outfile, data_dct, ds_list, lon_c, lat_c, time_s, fl_alt_s)
data_dct = {}
......@@ -211,6 +215,7 @@ def run(pirep_dct, outfile=None, outfile_l1b=None):
data_dct[ds_name] = np.array(l1b_grd_dct[ds_name])
if outfile_l1b is not None:
outfile_l1b = add_time_range_to_filename(outfile_l1b, t_start, t_end)
create_file(outfile_l1b, data_dct, l1b_ds_list, lon_c, lat_c, time_s, fl_alt_s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment