Set the bad-pixel flag for an NDF array component

#### Description:

The routine sets the value of the bad-pixel flag for an NDF array component. A call to this routine with BAD set to .TRUE. declares that the specified component may contain bad pixel values for which checks must be made by algorithms which subsequently process its values. A call with BAD set to .FALSE. declares that there are definitely no bad values present and that subsequent checks for such values may be omitted.

#### Invocation

CALL NDF_SBAD( BAD, INDF, COMP, STATUS )

#### Arguments

##### BAD = LOGICAL (Given)
Bad-pixel flag value to be set.
NDF identifier.
##### COMP = CHARACTER $\ast$ ( $\ast$ ) (Given)
Name of the NDF array component; ’DATA’ or ’VARIANCE’.
##### STATUS = INTEGER (Given and Returned)
The global status.

#### Notes:

• A comma-separated list of component names may also be supplied, in which case the bad-pixel flag will be set to the same value for each component in turn.

• If a component is mapped for access when this routine is called, then the bad-pixel flag will be associated with the mapped values. This information will only be transferred to the actual data object when the component is unmapped (but only if it was mapped for UPDATE or WRITE access). The value transferred may be modified if conversion errors occur during the unmapping process.

• This routine has no effect on components which are in an undefined state; the bad-pixel flag for such components always remains set to .TRUE. (or .FALSE. in the case of the QUALITY component).