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

use separate is_day, is_night functions

parent ee0f2c6f
No related branches found
No related tags found
No related merge requests found
......@@ -558,7 +558,7 @@ def run_daynight(filename, filename_l1b, day_night='ANY'):
idxs = []
for i in range(num_obs):
if day_night == 'NIGHT':
if not is_day(solzen[i,]):
if is_night(solzen[i,]):
idxs.append(i)
elif day_night == 'DAY':
if is_day(solzen[i,]):
......@@ -683,7 +683,7 @@ def apply_qc_icing_pireps(icing_alt, cld_top_hgt, cld_phase, cld_opd, cld_mask,
if is_day(solzen[i,]):
continue
elif day_night == 'DAY':
if not is_day(solzen[i,]):
if is_night(solzen[i,]):
continue
keep_0 = np.logical_or(cld_mask[i,] == 2, cld_mask[i,] == 3) # cloudy
......
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