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

improve match_amvs_to_aeolus

parent 17dd34e1
No related branches found
No related tags found
No related merge requests found
...@@ -1858,11 +1858,9 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals ...@@ -1858,11 +1858,9 @@ 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'):
if chan == 'mie':
a_d = get_cloud_layers_dict_s(aeolus_files_dir) a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan)
else: a_d = time_dict_to_nd(a_d)
a_d = get_aeolus_time_dict_s(aeolus_files_dir, chan=chan)
a_d = time_dict_to_nd_0(a_d)
amv_files = None amv_files = None
if amv_source == 'CARR': if amv_source == 'CARR':
...@@ -1873,10 +1871,7 @@ def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=Non ...@@ -1873,10 +1871,7 @@ def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=Non
m_d = match_amvs_to_aeolus(a_d, amv_files_dir, amv_source, band, amv_files) m_d = match_amvs_to_aeolus(a_d, amv_files_dir, amv_source, band, amv_files)
if outfile is not None: if outfile is not None:
cld_lyr = False create_file(outfile, m_d, a_d, amv_files)
if chan == 'mie':
cld_lyr = True
create_file(outfile, m_d, a_d, amv_files, cld_lyr=cld_lyr)
# match_file: pathname for the product file # match_file: pathname for the product file
......
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