Wherever a bit is set to 1 in the bad-bits mask, the corresponding bit will be extracted from the NDF's quality array value for each pixel (the other quality bits being ignored). A pixel is then considered `bad' if any of the extracted quality bits is set to 1. Effectively, the bad-bits mask therefore allows selective activation of any of the eight 1-bit masks which can be stored in the quality array.
The bit mask can be given either numerically (in decimal, binary, octal or hexadecimal format), or as a set of quality names (see SETQUAL).
The AND parameter is not used if a TRUE value is given for the OR parameter. [FALSE]
If the AND and OR parameters are both FALSE, then the value supplied will be used directly as the new mask value. However, if either of these logical parameters is set to TRUE, then an appropriate bit-wise `AND' or `OR' operation with the old mask value will first be performed.
It may also be specified as a comma-separated list of quality names. A quality name is a symbolic name that identifies a specific quality bit (quality names can be defined using SETQUAL, and displayed using SHOWQUAL).
The default value suggested when prompting for this value is chosen so as to leave the original mask value unchanged.
KAPPA --- Kernel Application Package