From e8003de8515027ee34b39478da05e94d60ce3a26 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 29 Mar 2021 09:07:27 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index e9516e6a..264f893b 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -609,9 +609,6 @@ def run_qc(filename, filename_l1b, outfile, outfile_l1b): mask = apply_qc_icing_pireps(icing_alt, cld_top_hgt, cld_phase, cld_opd, cld_mask, bt_11um) - f.close() - f_l1b.close() - bts = [] phs = [] opd = [] @@ -643,6 +640,7 @@ def run_qc(filename, filename_l1b, outfile, outfile_l1b): data_dct = {} for didx, ds_name in enumerate(ds_list): data_dct[ds_name] = f[ds_name][keep_idxs,] + lon_c = f['longitude'][keep_idxs] lat_c = f['latitude'][keep_idxs] time_s = f['time'][keep_idxs] @@ -658,6 +656,9 @@ def run_qc(filename, filename_l1b, outfile, outfile_l1b): create_file(outfile_l1b, data_dct, l1b_ds_list, l1b_ds_types, lon_c, lat_c, time_s, fl_alt_s, ice_int_s, unq_ids) + f.close() + f_l1b.close() + return mask -- GitLab