iv ♦ Prospero Command Procedure Scripts
7.6 GOTO: jump to a labeled place in a procedure
................................
................................
20
7.7 “:” label a line as a GOTO jump-point
................................
................................
..............................
................................
................................
................................
................................
21
7.9 IF/THEN Logical Flow Control
................................
................................
................................
22
7.10 ERROR: execute on error
................................
................................
................................
24
7.11 EOF: execute on End-of-File (EOF)
................................
................................
................................
25
Chapter 8: Prospero Variables
................................
................................
................................
27
8.1 Arithmetic Expressions
................................
................................
................................
27
8.2 SET: define a Prospero variable and give it a value
................................
................................
30
8.3 TYPE: evaluate an expression and print it
................................
................................
..........................
31
8.4 ASK: prompt for a variable on the console
................................
................................
.........................
32
8.5 Using variables to specify numbers on the command line
................................
................................
32
8.6 PRINTF: formatted output of strings & arithmetic expressions
................................
..........................
33
Chapter 9: String Variables in Prospero
................................
................................
................................
37
9.1 STRING: define a string variable
................................
................................
................................
37
9.2 Substituting String Variables into a Command Line
................................
................................
38
9.3 Printing string variables
................................
................................
................................
38
9.4 Getting values out of the FITS headers
................................
................................
...............................
39
9.5 Advanced Examples of String Substitution
................................
................................
..........................
40
Chapter 10: External ASCII Files
................................
................................
................................
41
10.1 OPEN: open an ASCII data file for reading
................................
................................
41
10.2 CLOSE: closing an opened ASCII data file
................................
................................
41
10.3 READ: read the next line of an ASCII data file
................................
................................
42
10.4 SKIP: skip over lines in an ASCII data file
................................
................................
43
10.5 REWIND: position an OPEN'd file to the beginning of the file
................................
.........................
44
10.6 STAT: find the properties of a file
................................
................................
................................
44
10.7 Implicit READing: substituting a file line onto the command line
................................
45
10.8 Writing to Files using Output Redirection
................................
................................
.........................
46
Chapter 11: Sample Procedure Scripts
................................
................................
................................
47
11.1 An Image Sequence (Part I)
................................
................................
................................
47
11.2 An Image Sequence (Part II)
................................
................................
................................
47
11.3 Simple Camera Focus Script
................................
................................
................................
49
11.4 More Complex Camera Focus Script
................................
................................
................................
50
11.5 IR Image Mosaic Script (Part I)
................................
................................
................................