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

snapshot...

parent 87d4ebb7
No related branches found
No related tags found
No related merge requests found
import numpy as np import numpy as np
import xarray as xr import xarray as xr
from netCDF4 import Dataset from netCDF4 import Dataset
from aeolus.datasource import get_datasource, CLAVRx_CALIPSO from aeolus.datasource import get_datasource, CLAVRx_CALIPSO, get_parameters_caliop_clavrx
amv_file_duration = 60 # minutes amv_file_duration = 60 # minutes
half_width = 30 # search box centered on CALIOP profile (FGF coordinates) half_width = 30 # search box centered on CALIOP profile (FGF coordinates)
...@@ -73,7 +73,8 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_path, calipso_clavrx_file, amv_f ...@@ -73,7 +73,8 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_path, calipso_clavrx_file, amv_f
amv_ds.close() amv_ds.close()
calipso_clavrx_params = ['closest_calipso_top_alt', 'closest_calipso_base_alt', 'cld_height_acha', 'cld_height_base_acha'] #calipso_clavrx_params = ['closest_calipso_top_alt', 'closest_calipso_base_alt', 'cld_height_acha', 'cld_height_base_acha']
calipso_clavrx_params = get_parameters_caliop_clavrx()
coords_a = {'num_calipso_clavrx_params': calipso_clavrx_params} coords_a = {'num_calipso_clavrx_params': calipso_clavrx_params}
dims_a = ['num_calipso_clavrx_params'] dims_a = ['num_calipso_clavrx_params']
calipso_clavrx_data = [] calipso_clavrx_data = []
...@@ -111,7 +112,7 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_path, calipso_clavrx_file, amv_f ...@@ -111,7 +112,7 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_path, calipso_clavrx_file, amv_f
def create_file_new(match_dct, filename, amv_params=['pressure', 'wind_speed', 'wind_direction'], def create_file_new(match_dct, filename, amv_params=['pressure', 'wind_speed', 'wind_direction'],
caliop_clavrx_params=['closest_calipso_top_alt', 'closest_calipso_base_alt', 'cld_height_acha', 'cld_height_base_acha']): caliop_clavrx_params=get_parameters_caliop_clavrx()):
num_aparams = 7 num_aparams = 7
num_aprofs = 0 num_aprofs = 0
max_num_alevels = 0 max_num_alevels = 0
......
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