Skip to content
Snippets Groups Projects
Commit 2ed4eb25 authored by rink's avatar rink
Browse files

minor

parent 6badaaaf
Branches
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment