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

fix bug in night mode

parent 3c1efaf2
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -126,6 +126,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
bt_10_4 = ancil_data_dct[bt_fld_name] bt_10_4 = ancil_data_dct[bt_fld_name]
day_idxs = [] day_idxs = []
nght_idxs = [] nght_idxs = []
all_idxs = []
avg_bt = [] avg_bt = []
for j in range(num_lines): for j in range(num_lines):
for i in range(num_elems): for i in range(num_elems):
...@@ -135,6 +136,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -135,6 +136,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
if not check_oblique(satzen[k]): if not check_oblique(satzen[k]):
continue continue
all_idxs.append(k)
if is_day(solzen[k]): if is_day(solzen[k]):
day_idxs.append(k) day_idxs.append(k)
else: else:
...@@ -213,8 +215,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -213,8 +215,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
elif day_night == 'NIGHT': elif day_night == 'NIGHT':
model_path = night_model_path model_path = night_model_path
all_idxs = np.arange(num_lines * num_elems)
mode = 'NIGHT' mode = 'NIGHT'
if use_dnb and lunar_illuminated: if use_dnb and lunar_illuminated:
model_path = day_model_path model_path = day_model_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment