Lesson 11. Batch and Script
Brief description:
During this lesson you will learn how to create
scripts for processing raster files in batch mode using the Script Studio.
For detailed information on these subjects see sections Script Studio and Batch Studio of the Quick Start guide,
and also the corresponding section of the User’s Guide.
Our task is to create a Script that will automatically
process a raster image using the following commands: Equalize, calibration,
crop by Frame and save.
To calibrate in batch mode, you need to set calibration
pairs. In this example the calibration pairs have already been set and
saved in the document file - utrecht.cws, located in the
Lesson_11 folder. See Lesson 2 for detailed information
on setting calibration pairs.
- Choose Script Studio from the Tools menu.
Let’s create a new script using the Edit Script
dialog.
- Choose File from the Category list; choose
Open Document from the list of commands of the File
category; and move the selected command to the Script
field.

- Click on "+" to open the sub-category, which contains the
chosen command options.
- Specify the Lesson_11 folder, in which
the utrecht.cws document is
stored.
- From the Category
list, choose Image; from the list of commands choose Equalizer
and move the selected command to the Script field.
- Then do the same with the Calibration command (we do
not specify a TEMPLATE, as the calibration pairs are saved in the document
file) and the Crop Auto by Frame command.
- From the Category list choose File; from
the list of commands choose Save as Document.
- Open the sub-folder of the command options and specify the location
and name of the resulting file in the File Name field. In
the File Type field specify the type of the resulting
file - cws.
INFORMATION: You can save the Script (*.csf) file by pressing the Save
As button of the Edit Script dialog.
- To start the Script, press the Run button of the Edit
Script dialog.
| When starting a Script, the bottom-right corner of the Edit
Script dialog displays a report on the command
execution. |
 |
|