The routine adds a scalar (i.e.
constant) value to each
pixel of an NDF’s
data array within a sub-section to produce a new NDF data structure.
rift in scalar out section
IN = NDF (Read)
Input NDF data
structure, to which the value is to be added.
OUT = NDF (Write)
Output NDF data
SCALAR = _DOUBLE (Read)
The value to be added to the NDF’s data array
within the section.
SECTION = LITERAL (Read)
The pixels to which a scalar is to be
added. This is defined as an NDF section, so that ranges can be defined along any
axis, and be given as pixel indices or axis (data) co-ordinates. So for example
would select the pixel at (3,4,5);
would select all elements in
columns 3 to 5;
selects line 4. See Section 9
The title for the output NDF. A null value will cause the title
of the NDF supplied for Parameter IN to be used instead.
rift aa 10.7 bb "100:105" 20 This adds 10 in the columns 100 to 105 in the
data array of the NDF called aa and stores the result in the NDF called bb. In
other respects bb is a copy of aa.
rift cubein -100 cubeout "„4" This adds
to all values in the fourth plane of the data array of the NDF called
cubein and stores the result in the NDF called cubeout. In other
respects cubeout is a copy of cubeout.
rift in=aa scalar=2 out=bb
This adds 2 to the rectangular section between columns
5 and lines 196 to 204 of the data array of the NDF called aa and stores the result
in the NDF called bb. In other respects bb is a copy of aa.
similar operations performed on a subset, use the appropriate application to
process the relevant section and then run PASTE to paste the result back into
the full array.