QUALTOBAD

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.

Usage:

qualtobad in out qexp

Parameters:

IN = NDF (Read)
The input NDF.
OUT = NDF (Write)
The output NDF.
QEXP = LITERAL (Read)
The quality expression.
TITLE = LITERAL (Read)
Title for the output NDF. A null (!) value will cause the input title to be used. [!]

Examples:

qualtobad m51 _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.

Related Applications

KAPPA: REMQUAL, SETBB, SETQUAL, SHOWQUAL.