diff --git a/scripts/visibility.py b/scripts/visibility.py index 12a0472..481dcf7 100644 --- a/scripts/visibility.py +++ b/scripts/visibility.py @@ -37,8 +37,9 @@ Method: vehicle), a "Target obscured" episode of its whole duration, without a level. 8. Diffuse nuisance, with or without rejections (wf-improve session Visibility, mod. 1, S2): at each instant, the median, over the sensors, of the error_value in MAD above each one's median; at least RUN_MIN instants in a row at K_DIFFUSE - or more make a Poor visibility "reduced". A diffuse nuisance entirely within heat shimmer is the heat shimmer: no - episode (otherwise it absorbed the jump back of the day before, WILDSTRUBEL on 04.10). Finds the drops of + or more make a Poor visibility "reduced". A diffuse nuisance entirely within heat shimmer is the heat shimmer, and + within a Poor visibility of point 3, that one (the same instants twice, two events: wf-improve, batch 2026-11-05, S2): + no episode (otherwise it absorbed the jump back of the day before, WILDSTRUBEL on 04.10). Finds the drops of visibility of the whole scene without rejection at JUNGFRAU, FLORIDA, NORDEND; at 2, nights labelled thermal at JUNGFRAU; at 3, half the gain. @@ -242,8 +243,9 @@ def diffuse(measurements): def detect(measurements): shimmer = heat_shimmer(measurements) # a diffuse nuisance during heat shimmer is the heat shimmer (8) - return ([e for e in episodes(measurements) if e["kind"] == "Visibility"] + shimmer - + [e for e in diffuse(measurements) if not any(t["start"] <= e["start"] and e["end"] <= t["end"] for t in shimmer)]) + poor = [e for e in episodes(measurements) if e["kind"] == "Visibility"] # a diffuse nuisance within one of them is it + return poor + shimmer + [e for e in diffuse(measurements) + if not any(t["start"] <= e["start"] and e["end"] <= t["end"] for t in shimmer + poor)] # --- Heat shimmer ----------------------------------------------------------------------------------------------------