Batch processing is a powerful way to automate repetitive tasks. All of the main display and processing functions can be recorded in a batch file and then replayed at a later time. See Batch (§ 2.6.) for more information on batch processing.
Record menu operations for later playback
Batch file name
Play back previously recorded menu operations
Batch file name
Play back recorded batch file one line at a time
Batch file name
Stop recording or playing batch file
[None]
Edit a batch file in a text editor
Batch file name
Assign values to batch variables
Batch Variable Set
Variable name
Variable value
Batch Variable Prompt
Variable name
User prompt
Default value (optional)
Note that the variable value in Batch/Variable/Set can be an algebraic expression and can include other variables. See batch for a complete description of batch files and how to create and use them.
Include an if-then clause in a batch file
Batch If Begin
Batch If Else
Batch If End
[None]
Include a for-next loop in a batch file
Batch For Begin
Batch For End
[None]
Set up a goto jump and a label to go to in a batch file
Batch Label Goto
Batch Label Define
Batch label name?
Temporarily halt execution of the batch file
[None]
This command is used to let the user control the execution of the batch file. A message box will pop up telling the user that the batch file has been paused. Execution will continue after the OK button is pressed.
Build an image list for processing functions
File to save list in
List of files
Many processing functions require the use of image lists for processing. These lists are saved in a "list file". This Batch Build List utility can be used to easily create such a list file from within a batch file. The first parameter is the name of the list file to save the filenames in and will be used for processing. The second parameter is a list of comma-separated filenames to be included in the list, along with column and row headings.
Sample filename list:
NDVI, 1996, Mean, Jan, dv9601.img, Feb, dv9602.img