Replaces bad pixels in a two-dimensional NDF with the local median
The positions of the pixels to be removed can be supplied in four ways (see Parameter MODE):
In response to parameter prompts. A single bad pixel position is supplied at each prompt, and the user is re-prompted until a null value is supplied.
Within a positions list such as produced by applications CURSOR, LISTMAKE.
Within a simple text file. Each line contains the position of a pixel to be replaced.
Alternatively, each bad pixel in the input NDF can be used (subject to the above requirement that at least three out of the eight neighbouring pixels are not bad).
"Catalogue"
. #
or !
. This parameter is only used if Parameter MODE is
set to "File"
. "Bad"
–- The bad pixels in the input NDF are used.
"Catalogue"
–- Positions are obtained from a positions list using Parameter
INCAT.
"File"
–- The pixel positions are read from a text file specified by Parameter
INFILE.
"Interface"
–- The position of each pixel is obtained using Parameter PIXPOS. The
number of positions supplied must not exceed 200.
[
current value]
"Interface"
. If a value is supplied on the command line,
then the application exits after processing the single specified pixel. Otherwise,
the application loops to obtain multiple pixels to replace, until a null (!
)
value is supplied. Entering a colon (":"
) will result in a description of the
required co-ordinate Frame being displayed, followed by a prompt for a new
value. !
) propagates the title from the input image to the output image. [!]
If the current co-ordinate Frame of the input NDF is not PIXEL, then the supplied positions are first mapped into the PIXEL Frame before being used.
This routine correctly processes the AXIS, DATA, QUALITY, VARIANCE, LABEL, TITLE, UNITS, WCS, and HISTORY components of the input NDF and propagates all extensions.
Processing of bad pixels and automatic quality masking are supported.
Only single- and double-precision floating-point data can be processed directly. All integer data will be converted to floating point before being processed.