Skip to content
Snippets Groups Projects
Commit 752decda authored by rink's avatar rink
Browse files

minor

parent a7dcf81d
No related branches found
No related tags found
No related merge requests found
...@@ -225,9 +225,18 @@ def get_aeolus_time_dict_s(files_path, lon360=False, do_sort=True): ...@@ -225,9 +225,18 @@ def get_aeolus_time_dict_s(files_path, lon360=False, do_sort=True):
return t_dct return t_dct
def run_amv_aeolus_best_fit(match_dict): def run_amv_aeolus_best_fit(match_dict, aeolus_dict):
return None keys = list(match_dict.keys())
for key in keys:
profs = aeolus_dict.get(key)
layers = profs[0]
if layers is None:
continue
lat = layers[0, 0]
lon = layers[0, 1]
return None
def get_search_box(nav, lon, lat): def get_search_box(nav, lon, lat):
cc, ll = nav.earth_to_lc(lon, lat) cc, ll = nav.earth_to_lc(lon, lat)
...@@ -411,11 +420,11 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct): ...@@ -411,11 +420,11 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct):
rootgrp.close() rootgrp.close()
# aeolus_file: S4 NOAA txt output # aeolus_files_dir: S4 NOAA txt output files
# amv_files_dir: G16/17 AMV product file # amv_files_dir: G16/17 AMV product files
# outfile: pathname for the Netcdf match file # outfile: pathname for the Netcdf match file
def run(aeolus_file, amv_files_dir, outfile=None, amv_source='OPS', band='14'): def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=None, amv_source='OPS', band='14'):
a_d = get_aeolus_time_dict(aeolus_file) a_d = get_aeolus_time_dict_s(aeolus_files_dir)
a_d = time_dict_to_nd(a_d) a_d = time_dict_to_nd(a_d)
m_d = match_amvs_to_aeolus(a_d, amv_files_dir, amv_source, band) m_d = match_amvs_to_aeolus(a_d, amv_files_dir, amv_source, band)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment