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

snapshot...

parent ec866dbe
No related branches found
No related tags found
No related merge requests found
......@@ -755,9 +755,9 @@ def run_qc(filename, filename_l1b, day_night='ANY'):
def apply_qc_icing_pireps(icing_alt, cld_top_hgt, cld_phase, cld_opd, cld_mask, bt_11um, solzen, day_night='ANY'):
opd_threshold = 2
opd_thick_threshold = 2
if day_night == 'DAY':
opd_threshold = 20
opd_thick_threshold = 20
closeness = 100.0 # meters
num_obs = len(icing_alt)
cld_mask = cld_mask.reshape((num_obs, -1))
......@@ -789,7 +789,7 @@ def apply_qc_icing_pireps(icing_alt, cld_top_hgt, cld_phase, cld_opd, cld_mask,
np.logical_and(cld_top_hgt[i,]+closeness > icing_alt[i], cld_top_hgt[i,]-closeness < icing_alt[i])),
False)
keep = np.where(keep, (cld_opd[i,] >= opd_threshold) & (cld_phase[i,] == 4) & (cld_top_hgt[i,] > icing_alt[i]), False)
keep = np.where(keep, (cld_opd[i,] >= opd_thick_threshold) & (cld_phase[i,] == 4) & (cld_top_hgt[i,] > icing_alt[i]), False)
keep = np.where(keep, np.invert((cld_phase[i,] == 4) & (cld_opd[i,] < 0.1) & (cld_top_hgt[i,] > icing_alt[i])), False)
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment