From 2ed4eb25e1d90181806f2ea7a459facabcaaf7f7 Mon Sep 17 00:00:00 2001
From: rink <rink@ssec.wisc.edu>
Date: Mon, 28 Sep 2020 13:23:53 -0500
Subject: [PATCH] minor

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

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index 98ec7dcd..f3995e80 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -17,9 +17,6 @@ first_time = True
 ftimes = []
 flist = None
 
-# G16_lon_range = [-130.0, -30.0]
-# G16_lat_range = [-64.0, 64.0]
-
 
 class MyGenericException(Exception):
     def __init__(self, message):
@@ -252,13 +249,15 @@ amv_lon_name = 'Lon'
 amv_lat_name = 'Lat'
 amv_press_name = 'pres'
 # -------------------------------
+sub_lon = -137.0  # GOES-17
+#sub_lon = -75.0  # GOES-16
 
 
 # aeolus_dict: time -> profiles
 # amv_files_path: directory containing AMVs, '/home/user/amvdir/'
 # return dict: aeolus time -> tuple (amv_lon, amv_lat, amv_pres, amv_spd, amv_dir)
 def match_amvs_to_aeolus(aeolus_dict, amv_files_path, amv_source='OPS', band='14'):
-    nav = GEOSNavigation()
+    nav = GEOSNavigation(sub_lon=sub_lon)
     match_dict = {}
 
     keys = list(aeolus_dict.keys())
@@ -275,12 +274,6 @@ def match_amvs_to_aeolus(aeolus_dict, amv_files_path, amv_source='OPS', band='14
 
         lat = layers[0, 0]
         lon = layers[0, 1]
-        # check range
-        # if lat > G16_lat_range[1] or lat < G16_lat_range[0]:
-        #     continue
-        # if lon > G16_lon_range[1] or lon < G16_lon_range[0]:
-        #     continue
-        # ------------------------------------------------
 
         c_rng, l_rng = get_search_box(nav, lon, lat)
         if c_rng is None:
-- 
GitLab