From 4aef128c5aad7271a6dda16ac4ec52a2b3edc052 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 10 Jan 2022 13:35:54 -0600
Subject: [PATCH] snapshot...

---
 modules/amv/caliop_clavrx_amv.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index 0624cf93..6a3a7c63 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -41,7 +41,8 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
     nom_time = calipso_clavrx_ds.get_datetime(calipso_clavrx_file).timestamp()
     calipso_clavrx_nc4 = Dataset(calipso_clavrx_file)
 
-    amv_fname, ftime, f_idx = amv_files.get_file_containing_time(nom_time)
+    # amv_fname, ftime, f_idx = amv_files.get_file_containing_time(nom_time)
+    amv_fname, ftime, f_idx = amv_files.get_file(nom_time)
     if f_idx is None:
         return None
 
@@ -273,7 +274,7 @@ def run_caliop_clavrx_amv_match(output_path, path_to_caliop_clavrx, path_to_amvs
 
     caliop_clavrx_ds = CLAVRx_CALIPSO(path_to_caliop_clavrx)
 
-    amv_ds = get_datasource(path_to_amvs, amv_source, band=band)
+    amv_ds = get_datasource(path_to_amvs, amv_source, file_time_span=20, band=band)
     amv_params = amv_ds.get_parameters()
     amv_filenames = amv_ds.flist
 
-- 
GitLab