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

snaphot...

parent d3a35741
No related branches found
No related tags found
No related merge requests found
......@@ -55,10 +55,12 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
amv_fname, ftime, f_idx = amv_files.get_file(nom_time)
if f_idx is None:
return None
print(amv_fname)
gfs_fname, _, _ = gfs_ds.get_file(nom_time)
gfs_fname, _, _ = gfs_ds.get_file(nom_time, window=180.0)
if gfs_fname is None:
return None
print(gfs_fname)
gfs_xr = xr.open_dataset(gfs_fname)
gfs_press = gfs_xr['pressure levels']
gfs_press = gfs_press.values
......@@ -313,7 +315,7 @@ def run_caliop_clavrx_amv_match(output_path, path_to_caliop_clavrx, path_to_amvs
amv_params = amv_ds.get_parameters()
amv_filenames = amv_ds.flist
gfs_ds = get_datasource(path_to_gfs, 'GFS', window=180)
gfs_ds = get_datasource(path_to_gfs, 'GFS')
for f in caliop_clavrx_ds.flist:
match_dict = match_calipso_clavrx_to_amvs(caliop_clavrx_ds, f, amv_ds, caliop_clavrx_params, gfs_ds)
......
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