From b0317d1df9410b59aa16cc1b5e194a6a1dab2be9 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 25 Jan 2021 15:22:37 -0600
Subject: [PATCH] snapshot...

---
 modules/aeolus/aeolus_amv.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index 9d587308..b8af129d 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -246,7 +246,9 @@ def run_best_fit_all(amv_dir, source, product_dir, product, raob_path, gfs_path,
     amv_files = get_datasource(amv_dir, source)
     prd_files = get_datasource(product_dir, product)
     gfs_files = get_datasource(gfs_path, 'GFS')
-    raob_files = glob.glob(raob_path+'raob_soundings*.cdf')
+    #raob_files = glob.glob(raob_path+'raob_soundings*.cdf')
+    raob_ds = get_datasource(raob_path, 'RAOB')
+    raob_files = raob_ds.flist
 
     out_list = []
     amvs_list = []
@@ -257,6 +259,8 @@ def run_best_fit_all(amv_dir, source, product_dir, product, raob_path, gfs_path,
     if not full_domain:
         for k, file in enumerate(raob_files):
             raob_dct, ts = get_raob_dict_cdf(file)
+            ts_a = raob_ds.ftimes[k,0]
+            print(ts, ts_a)
             m_d = match_amvs_to_raobs(raob_dct, ts, amv_files)
             if m_d is None:
                 continue
-- 
GitLab