Assigns a specified quality to selected pixels within an NDF SETQUAL
The user can select the pixels to be operated on in one of three ways (see Parameter SELECT).
By giving a ‘mask’ NDF. Pixels with bad values in the mask NDF will be selected from the corresponding input NDF.
By giving a list of pixel indices for the pixels that are to be selected.
By giving an ARD file containing a description of the regions of the NDF that are to be selected. The ARD system (see SUN/183) uses a textual language to describe geometric regions of an array. Text files containing ARD description suitable for use with this routine can be created interactively using the routine ARDGEN or with Gaia.
The operation to be performed on the pixels is specified by Parameter
FUNCTION. The given quality may be assigned to or removed from pixels
within the NDF. The pixels operated on can either be those selected by the
user (as described above), or those not selected. The quality of all other
pixels is left unchanged (unless the Parameter FUNCTION is given the value
"NSHU"
or
"NUHS"
).
Thus for instance if pixel (1, 1) already held the quality specified by QNAME, and the
quality was then assigned to pixel (2, 2) this would not cause the quality to be
removed from pixel (1, 1).
This routine can also be used to copy all quality information from one NDF to another (see Parameter LIKE).
"ARD"
. The co-ordinate system in which positions within
this file are given should be indicated by including suitable COFRAME or WCS statements
within the file (see SUN/183), but will default to pixel co-ordinates in the absence of
any such statements. For instance, starting the file with a line containing the text
"COFRAME(SKY,System=FK5)"
would indicate that positions are specified in RA/DEC
(FK5,J2000). The statement "COFRAME(PIXEL)"
indicates explicitly that positions are
specified in pixel co-ordinates. "HS"
–- Ensure that the quality specified by QNAME is held by all the selected pixels.
The quality of all other pixels is left unchanged.
"HU"
–- Ensure that the quality specified by QNAME is held by all the pixels that have
not been selected. The quality of the selected pixels is left unchanged.
"NS"
–- Ensure that the quality specified by QNAME is not held by any of the selected
pixels. The quality of all other pixels is left unchanged.
"NU"
–- Ensure that the quality specified by QNAME is not held by any of the
pixels that have not been selected. The quality of the selected pixels is left
unchanged.
"HSNU"
–- Ensure that the quality specified by QNAME is held by all the selected pixels and
not held by any of the other pixels.
"HUNS"
–- Ensure that the quality specified by QNAME is held by all the pixels that have not
been selected and not held by any of the selected pixels.
["HS"]
!
), then the operation of this command is instead determined by
Parameter SELECT. [!]
"LIST"
. "MASK"
. TRUE
, then an error will
be reported if any attempt is subsequently made to remove the quality name
(e.g. using REMQUAL). [FALSE]
"Mask"
, "List"
or "ARD"
(see Parameters MASK, LIST, and ARD).
["Mask"]
[QUALITY_NAMES]
[]
"SATURATED"
is defined within the NDF m51.
The comment "Saturated pixels"
is stored with the quality name if it did not
already exist in the NDF. The quality SATURATED is then assigned to all pixels
for which the corresponding pixel in NDF m51_CUT is bad. The quality of all
other pixels is left unchanged. source_a.lis
, have the
quality "SOURCE_A"
, and also ensures that none of the pixels which were not
included in source_a.lis
have the quality. "source_b"
to pixels of the
NDF m51 as described by an ARD description stored in the text file "background.ard"
.
This text file could for instance have been created using routine ARDGEN. All the quality names which are currently defined within an NDF can be listed by application SHOWQUAL. Quality name definitions can be removed from an NDF using application REMQUAL. If there is no room for any more quality names to be added to the NDF then REMQUAL can be used to remove a quality name in order to make room for the new quality names.