HOME GUIDE OPERATIONS DOCS FAQ TECHNIQUES FORMATS INSTALL NEW TIPS WEB LINKS WADSWORTH

FR G - Read (sets) a global symbolic parameter (string variable)

(10/11/07)

PURPOSE

Associates a file name template or any other string with a string variable (symbolic parameter). Reads input from current procedure or terminal. 'FR G' differs from 'FR' which receives input from the calling procedure or input stream. The string variable is available globally from all following SPIDER procedures executed during this run.

SEE ALSO

FR [Read (sets) a local symbolic parameter (string variable)]
FR F [Read (sets) global symbolic parameter (string variable) from a file]
RR [Read Register variables]

USAGE

.OPERATION: FR G

. PARAMETER LABEL & ASSOCIATED VALUE: [string]value
[Enter string's name (surrounded by []'s) and associated alphanumeric string.]

1. Example.

FR G
[raw_file]nerve
DO [iter]=4,6
FS
[raw_file]{***[iter]}
ENDDO
CP
[raw_file]004
[raw_file]_jnk
EN

When procedure executes, operation sequence is :

FS
nerve004
FS
nerve005
FS
nerve006

CP
nerve004
nerve_jnk

NOTES

  1. This operation is useful when writing long procedures as a variable can be initialized to contain a string at the top of a procedure, then the variable e.g. [raw_file] can be used throughout this and following procedures. If the string's value later changes then it only has to be altered at one location in the procedure.

SUBROUTINES

RDPR, SYMPAR, SETSYMPAR, SUBSYMPAR, PARSESYMPAR

CALLER

DRIV1

© Copyright Notice /       Enquiries: spider@wadsworth.org

BACK TO SPIDER BACK TO WADSWORTH