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

snapshot...

parent d5f8ca76
No related branches found
No related tags found
No related merge requests found
...@@ -328,6 +328,13 @@ def get_cloud_layers_dict(filename, lon360=False): ...@@ -328,6 +328,13 @@ def get_cloud_layers_dict(filename, lon360=False):
return cld_lyr_dct return cld_lyr_dct
def get_cloud_layers_dict_s(aeolus_files_dir, lon360=False):
a_d = get_aeolus_time_dict_s(aeolus_files_dir, lon360=lon360, do_sort=True, chan='mie')
cld_lyr_dct = time_dict_to_cld_layers(a_d)
cld_lyr_dct = time_dict_to_nd_2(cld_lyr_dct)
return cld_lyr_dct
def run_amv_aeolus_best_fit(match_dict, aeolus_dict): def run_amv_aeolus_best_fit(match_dict, aeolus_dict):
keys = list(match_dict.keys()) keys = list(match_dict.keys())
...@@ -538,11 +545,10 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals ...@@ -538,11 +545,10 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals
# amv_files_dir: G16/17 AMV product files # amv_files_dir: G16/17 AMV product files
# outfile: pathname for the Netcdf match file # outfile: pathname for the Netcdf match file
def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=None, amv_source='OPS', band='14', chan='mie'): def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=None, amv_source='OPS', band='14', chan='mie'):
a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan)
if chan == 'mie': if chan == 'mie':
a_d = time_dict_to_cld_layers(a_d) a_d = get_cloud_layers_dict_s(aeolus_files_dir)
a_d = time_dict_to_nd_2(a_d)
else: else:
a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan)
a_d = time_dict_to_nd(a_d) a_d = time_dict_to_nd(a_d)
amv_files = None amv_files = None
......
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