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

snapshot...

parent 6fde7443
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,9 @@ def run():
last_clvr_file = None
last_h5f = None
num_obs = 0
num_files = 0
for idx, time in enumerate(time_keys):
reports = ice_dict[time]
for tup in reports:
......@@ -74,9 +77,11 @@ def run():
clvr_ds = get_clavrx_datasource(time)
except Exception:
continue
clvr_file = clvr_ds.get_file(time)[0]
if clvr_file is None:
continue
if clvr_file != last_clvr_file:
try:
h5f = h5py.File(clvr_file, 'r')
......@@ -88,8 +93,12 @@ def run():
last_h5f.close()
last_h5f = h5f
last_clvr_file = clvr_file
num_files += 1
else:
h5f = last_h5f
cc, ll = nav.earth_to_lc_s(lon_s, lat_s)
gvals = get_grid_values(h5f, 'temp_10_4um_nom', ll[0], cc[0], 20)
num_obs += 1
print(num_obs, num_files)
\ No newline at end of file
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