Skip to content
Snippets Groups Projects
Commit 9d322ab6 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 79862ec6
Branches
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ def get_amvs(amv_ds, timestamp, filepath=None): ...@@ -71,7 +71,7 @@ def get_amvs(amv_ds, timestamp, filepath=None):
# amv_ds: AMV data source # amv_ds: AMV data source
# time_window: (minutes) to search for AMVs around raob_time # time_window: (minutes) to search for AMVs around raob_time
# filepath (RAOB) # filepath (RAOB)
# return dict: raob (lat, lon) -> tuple (amv_lon, amv_lat, elem, line, amv_pres, amv_spd, amv_dir) # return dict: raob (lat, lon) -> tuple (amv_lon, amv_lat, elem, line, amv_pres, amv_spd, amv_dir), amv file
def match_amvs_to_raobs(raob_dict, raob_time, amv_ds, time_window=10, filepath=None): def match_amvs_to_raobs(raob_dict, raob_time, amv_ds, time_window=10, filepath=None):
nav = amv_ds.get_navigation() nav = amv_ds.get_navigation()
amv_params = amv_ds.get_parameters() amv_params = amv_ds.get_parameters()
...@@ -80,7 +80,7 @@ def match_amvs_to_raobs(raob_dict, raob_time, amv_ds, time_window=10, filepath=N ...@@ -80,7 +80,7 @@ def match_amvs_to_raobs(raob_dict, raob_time, amv_ds, time_window=10, filepath=N
if filepath is None: if filepath is None:
filepath, ftime, f_idx = amv_ds.get_file(raob_time, window=time_window) filepath, ftime, f_idx = amv_ds.get_file(raob_time, window=time_window)
if filepath is None: if filepath is None:
return None return None, None
ds = Dataset(filepath) ds = Dataset(filepath)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment