From 6874f55fc8ec7344ff39ccedc3dace3eef3d4ca0 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sat, 12 Jun 2021 11:35:00 -0500
Subject: [PATCH] improve match_amvs_to_aeolus

---
 modules/aeolus/aeolus_amv.py | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index ba631516..c60a2492 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -1858,11 +1858,9 @@ 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'):
-    if chan == 'mie':
-        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_0(a_d)
+
+    a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan)
+    a_d = time_dict_to_nd(a_d)
 
     amv_files = None
     if amv_source == 'CARR':
@@ -1873,10 +1871,7 @@ def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=Non
     m_d = match_amvs_to_aeolus(a_d, amv_files_dir, amv_source, band, amv_files)
 
     if outfile is not None:
-        cld_lyr = False
-        if chan == 'mie':
-            cld_lyr = True
-        create_file(outfile, m_d, a_d, amv_files, cld_lyr=cld_lyr)
+        create_file(outfile, m_d, a_d, amv_files)
 
 
 # match_file: pathname for the product file
-- 
GitLab