Starlink standard data formats support two
methods of handling bad data: magic value (which
flags specified pixels as undefined)
and data quality (a more general mechanism, which may
be used to indicate any attribute of selected pixels, including
``badness''). Magic value is simple
and efficient. Data quality
is flexible and preserves the original data.
Starlink Standard Data Structures