Replaces the values of selected pixels in an NDF CHPIX
Two methods are available for obtaining the regions and replacement values, selected through Parameter MODE:
from the parameter system (see Parameters SECTION and NEWVAL). The task loops until there are no more elements to change, indicated by a null value in response to a prompt. For non-interactive processing, supply the value of Parameter NEWVAL on the command line.
The second approach uses a text file, that is especially beneficial where there are too many section and value pairs to enter manually. The file should contain two space-separated columns; the first column is the NDF section to replace, and the second supplies the value to insert into the section (see Parameter FILE).
"Data"
,
"Error"
, "Quality"
or "Variance"
. "Error"
is the alternative to "Variance"
and causes the
square of the supplied replacement value to be stored in the output VARIANCE array.
["Data"]
"File"
. Each line
should contain an NDF section of a region (see Parameter SECTION), then one or more
spaces, followed by the replacement value. The value is either numeric or "Bad"
, the latter
requests that the bad value be inserted into the section. The file may contain comment lines
with the first character #
or !
. "Interface"
— sections and values are obtained via Parameters SECTION and NEWVAL
respectively.
"File"
— sections and values are obtained from a text file specified by Parameter FILE.
["Interface"]
"Bad"
instructs that the bad value appropriate for the array
data type be substituted. Placing NEWVAL on the command line permits only one section
to be replaced. If there are multiple replacements, a null value (!
) terminates the loop.
If the section being modified contains only a single pixel, then the original value of that
pixel is used as the suggested default value. "3,4,5"
would select the pixel at (3,4,5); "3:5,"
would replace all elements in Columns 3 to 5; ",4"
replaces Line 4. See Section 9 for details. A null value (!
) terminates the loop during multiple
replacements. !
)
propagates the title from the input NDF to the output NDF. [!]
badbaseline.txt
to obtain the editing commands to be applied to the
NDF called harpcube to form the NDF harpmasked. The routine correctly processes the AXIS, DATA, QUALITY, VARIANCE, LABEL, TITLE, UNITS, WCS, and HISTORY components of an NDF; and propagates all extensions.
Processing of bad pixels and automatic quality masking are supported.
All non-complex numeric data types can be handled.