Arguments are referenced on the command line by
integer scan numbers of data stored within the
current sub-directory or by the name of a subdirectory to identify all
scans stored within the subdirectory.
If there is no argument on the command line, then the result of the
last argument from the previous command (i.e. X register)
is used if applicable to the requested functions (i.e.
a 1
1 or n
n function). For example, the
following command removes a polynomial baseline from the scan 2045
located in subdirectory S11.
S11> 2045 baseline
To plot the result of the subtraction and print some header information,
one simply enters the desired functions.
S11> plot print
Various uses of punctuation allow easier reference to argument scans within a
subdirectory. The most frequently used is the TO which fills the
argument list with all available scans numbers between the preceding number and the
following one. For example, to reference scan numbers 1001, 1002, 1003, 1004,
and 1005, the user can type
S16> 1001 TO 1005
If, in this example, scan 1003 did not exist in the current subdirectory,
the command line would proceed using scans 1001, 1002, 1004 and 1005.
The step size can be changed by issuing a question mark
after the TO string. For
example, in the process of of interpreting the command:
S16> 1001 TO ? 1005
the program will stop and print the current step size:
STEP = 1,
after which one can proceed with this step size by hitting carriage return
or enter a new number for the step size. If a 2 were entered, then the
argument list would become 1001, 1003, and 1005. As with all constants
within the program, once the step size has been changed, it retains its
new value until changed again. A second form of punctuation is the
symbol which references the last number used as an
argument and from which one can offset to refer to another scan number.
For example, if the last scan processed was 1005, then
+20 refers
to scan 1025. After scan 1025 has been processed, then
-10 refers
to scan 1015.
For arithmetic functions (+, -, *, /, **), the format of the second argument determines whether the operation is scalar or vectorial. If entered as a decimal, then the operation is considered scalar. If entered as an integer, then the argument is considered as a scan identification and the operation will be vectorial.