diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 93a7d2da5b998a21a42211596f5945d43da8bc9c..6e20d3b70257bffddc8dd5fe35de3b597cd643a1 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -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