If a logical (TRUE or FALSE) value is supplied for this parameter, then it indicates the new bad-pixel flag value which is to be set. Setting a TRUE value indicates to later applications that there may be bad pixels present in the NDF, for which checks must be made. Conversely, setting a FALSE value indicates that there are definitely no bad pixels present, in which case later applications need not check for them and should interpret the pixel values in the NDF literally.
The VALUE parameter is not used (a null value is assumed) if the MODIFY parameter is set to FALSE indicating that the NDF is not to be permanently modified. [!]
Conversely, if a bad-pixel flag value is FALSE, it indicates that there are no bad pixels present. In this case, any special `bad' values appearing in the array are to be interpreted literally as valid pixel values.
However, if either of the NDF's data or variance arrays do not contain any bad pixels themselves, a check will be made to see whether a QUALITY component is present. If it is (and its associated bad-bits mask is non-zero), then a warning message will be issued indicating that bad pixels may be introduced via this QUALITY component. If required, these bad pixels may be eliminated either by setting the bad-bits mask to zero or by erasing the QUALITY component.
KAPPA --- Kernel Application Package