From e374e77101c7e0a19d975fac1c976bdd2532729b Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 14 Jun 2021 11:59:25 -0500 Subject: [PATCH] improve match_amvs_to_aeolus --- modules/aeolus/aeolus_amv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index c60a2492..e9f606c4 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -1859,7 +1859,10 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals # outfile: pathname for the Netcdf match file def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=None, amv_source='OPS', band='14', chan='mie'): - a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan) + if os.path.isdir(aeolus_files_dir): + a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan) + else: + a_d = get_aeolus_time_dict(aeolus_files_dir) a_d = time_dict_to_nd(a_d) amv_files = None -- GitLab