From 97d9f46e78fd9c6e80cf73f8e937fdf8f0001971 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 3 Dec 2020 11:56:01 -0600
Subject: [PATCH] snapshot...

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

diff --git a/modules/amv/intercompare.py b/modules/amv/intercompare.py
index 076c967c..8e9c04ae 100644
--- a/modules/amv/intercompare.py
+++ b/modules/amv/intercompare.py
@@ -108,8 +108,9 @@ def filter_amvs(amvs, qitype=amv_cqi_idx, qival=50, lat_range=None):
         return amvs[keep, :]
 
 
-def get_raob_dict_cdf(filename):
+def get_raob_dict_cdf(filename, dt_str):
     rtgrp = Dataset(filename, 'r', format='NETCDF3')
+    dto = datetime.datetime.strptime(dt_str, '%Y-%m-%d_%H:%M').replace(tzinfo=timezone.utc)
 
     sta_lats_var = rtgrp['staLat']
     sta_lats_var.set_always_mask(False)
@@ -218,7 +219,7 @@ def get_raob_dict_cdf(filename):
 
         raob_dct[(lat, lon)] = raob
 
-    return raob_dct
+    return raob_dct, dto.timestamp()
 
 
 def get_raob_dict(filename):
-- 
GitLab