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

snapshot...

parent 6955135b
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ def setup(): ...@@ -21,7 +21,7 @@ def setup():
ice_dict, no_ice_dict = pirep_icing(pirep_file) ice_dict, no_ice_dict = pirep_icing(pirep_file)
print('num obs: ice, no ice', len(ice_dict), len(no_ice_dict)) print('num obs: ice, no ice', len(ice_dict), len(no_ice_dict))
time_keys = list(ice_dict.keys()) time_keys = list(ice_dict.keys())
return time_keys return time_keys, ice_dict, no_ice_dict
def get_clavrx_datasource(timestamp): def get_clavrx_datasource(timestamp):
...@@ -65,7 +65,7 @@ def get_grid_values(h5f, grid_name, j_c, i_c, half_width, scale_factor_name='sca ...@@ -65,7 +65,7 @@ def get_grid_values(h5f, grid_name, j_c, i_c, half_width, scale_factor_name='sca
return grd_vals return grd_vals
def run(time_keys): def run(time_keys, dct):
nav = GEOSNavigation(sub_lon=-75.0, CFAC=5.6E-05, COFF=-0.101332, LFAC=-5.6E-05, LOFF=0.128212, num_elems=2500, num_lines=1500) nav = GEOSNavigation(sub_lon=-75.0, CFAC=5.6E-05, COFF=-0.101332, LFAC=-5.6E-05, LOFF=0.128212, num_elems=2500, num_lines=1500)
...@@ -90,7 +90,7 @@ def run(time_keys): ...@@ -90,7 +90,7 @@ def run(time_keys):
cnt = 0 cnt = 0
for idx, time in enumerate(time_keys): for idx, time in enumerate(time_keys):
reports = ice_dict[time] reports = dct[time]
for tup in reports: for tup in reports:
lat, lon, fl, rpt_str = tup lat, lon, fl, rpt_str = tup
lat_s[0] = lat lat_s[0] = lat
......
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