From 2179d15568d2d855d692dbcdfc3591c716605314 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 8 Mar 2021 11:20:38 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 6be1c6d4..6a1eae9d 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -79,6 +79,8 @@ def run(time_keys, pirep_dct, outfile=None): last_h5f = None cnt = 0 + miss_a = 0 + miss_b = 0 for idx, time in enumerate(time_keys): reports = pirep_dct[time] for tup in reports: @@ -89,10 +91,12 @@ def run(time_keys, pirep_dct, outfile=None): try: clvr_ds = get_clavrx_datasource(time) except Exception: + miss_a += 1 continue clvr_file = clvr_ds.get_file(time)[0] if clvr_file is None: + miss_b += 1 continue if clvr_file != last_clvr_file: @@ -119,7 +123,7 @@ def run(time_keys, pirep_dct, outfile=None): cnt += 1 - print('num images: ', cnt, len(time_keys)) + print('num images: ', cnt, len(time_keys), miss_a, miss_b) def create_file(filename, ds_list, ds_types): -- GitLab