From d71f99a236510c2bef18309a78c0d09d5d322407 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 28 Oct 2020 12:16:56 -0500 Subject: [PATCH] snapshot... --- modules/aeolus/aeolus_amv.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index 5914182c..1de7110e 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -328,6 +328,13 @@ def get_cloud_layers_dict(filename, lon360=False): return cld_lyr_dct +def get_cloud_layers_dict_s(aeolus_files_dir, lon360=False): + a_d = get_aeolus_time_dict_s(aeolus_files_dir, lon360=lon360, do_sort=True, chan='mie') + cld_lyr_dct = time_dict_to_cld_layers(a_d) + cld_lyr_dct = time_dict_to_nd_2(cld_lyr_dct) + return cld_lyr_dct + + def run_amv_aeolus_best_fit(match_dict, aeolus_dict): keys = list(match_dict.keys()) @@ -538,11 +545,10 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals # amv_files_dir: G16/17 AMV product files # 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 chan == 'mie': - a_d = time_dict_to_cld_layers(a_d) - a_d = time_dict_to_nd_2(a_d) + a_d = get_cloud_layers_dict_s(aeolus_files_dir) else: + a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan) a_d = time_dict_to_nd(a_d) amv_files = None -- GitLab