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

snapshot...

parent fc08fdd3
Branches
No related tags found
No related merge requests found
......@@ -197,7 +197,6 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end
if clvr_file is None:
continue
print(clvr_file, last_clvr_file)
if clvr_file != last_clvr_file:
try:
h5f = h5py.File(clvr_file, 'r')
......@@ -210,7 +209,6 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end
last_h5f.close()
last_h5f = h5f
last_clvr_file = clvr_file
print('new file')
else:
h5f = last_h5f
......@@ -220,30 +218,6 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end
lat_s[0] = lat
lon_s[0] = lon
# try:
# 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')
# except Exception:
# if h5f is not None:
# h5f.close()
# print('Problem with file: ', clvr_file)
# continue
# if last_h5f is not None:
# last_h5f.close()
# last_h5f = h5f
# last_clvr_file = clvr_file
# else:
# h5f = last_h5f
cc, ll = nav.earth_to_lc_s(lon_s, lat_s)
if cc[0] < 0:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment