Set selected NDF pixels bad on the basis of Quality

Description:

This routine produces a copy of an input NDF   in which selected pixels are set bad. The selection is based on the values in the QUALITY component  of the input NDF; any pixel which holds a set of qualities satisfying the quality expression  given for Parameter QEXP is set bad in the output NDF. Named qualities can be associated with specified pixels using the SETQUAL task.

Parameters:

The input NDF.
OUT = NDF (Write)
The output NDF.
Title for the output NDF. A null (!) value will cause the input title to be used. [!]
qualtobad m51$\ast$ $\ast$_clean saturated.or.glitch
This example copies all NDFs starting with the string "m51" to a set of corresponding output NDFs. The name of each output NDF is formed by extending the name of the input NDF with the string "_clean". Any pixels which hold either of the qualities "saturated" or "glitch" are set to the bad value in the output NDFs.