noaa-goes-visualization/suvi/quality.py

18 lines
837 B
Python
Raw Permalink Normal View History

2026-10-14 00:27:18 -04:00
"""How a judged frame is presented to the model.
**Damage is withheld, never shown.** Training (suvi.samples), evaluation (bench) and
production (render_real) agree: a band that is missing, unreadable or judged bad
reads as absent, and the model sees only the bands an entry holds. A stack entry
is `available` if it holds at least one band and `missing` otherwise.
There used to be a third state, `suspect` -- a frame judged bad but shown with its
pixels. The model gave such frames a small blend weight, and on 2024-04-16/17 and
05-03, when most 94 and 131 frames were short-exposure static (N_LONG=0), that
weight speckled the far field of every fill. v9 dropped it.
"""
#: The states a stack entry can be in. suvi.model's conditioning one-hot is
#: indexed by these exact strings.
AVAILABLE = "available"
MISSING = "missing"