AIPS HELP file for READ in 31DEC24
As of Sat Oct 5 17:07:20 2024
HELP SECTION
READ
Type: Verb
Use: To enter adverb values in free format for a list of
variables.
Grammar: READ adv1, adv2, adv3, ..., advn
where adv1, adv2, etc. are valid adverb names. They
may refer to scalars, arrays, or strings and may be
subscripted. AIPS will prompt you to enter values
with a # sign. Type as many values to a line as you
wish and AIPS will return to normal input mode
(prompt character >) when enough values have been read.
Arrays are entered in storage order (see HELP ARRAY and
HELP STRING) and character string data must be
enclosed in quotes ( ' ).
Care must be taken with this verb. The data to be read must be
entered from the input unit that issues the READ. Thus, if
"READ I" occurs in a simple text file that is being RUN, the
value for I must appear in the next line of the text file - it
is not entered from the terminal. READ is best used in
procedures. Then the value to be read is placed on the input
source that is used to invoke the procedure. Thus, if one RUN
file is used to define a procedure, say MYPROC, containing a
READ and another RUN file invokes MYPROC, then that second RUN
file must contain the values to be read. A procedure that is
defined in whatever way, but invoked from the interactive
terminal will READ from the terminal.
EXPLAIN SECTION