How to Batch the CADRG Exporter - ERDAS Imagine Tutorial
How to Batch the CADRG Exporter - ERDAS Imagine Tutorial

This procedure shows how to use batch to export multiple input images into one seamless output RPF in ERDAS IMAGINE 2011.

1. Since we are generating one output RPF, we will uncheck "Del Existing RPF."  Once all other settings are the way we want them, click the "Batch" button.

2. Select Modify commands manually, and optionally click the start default button so your default is remembered here next time.  Then click Next.

3. Click on the "Variables" tab.

4. Click "New" to define for a new variable, you can leave the name default if you like, it will be used for the input image, so it you could rename it to "Input."

5. Click back on the "Commands" tab.

6. Highlight the text inside the "quotes" that follows after the command line argument RPF_Input_Image, as shown below.  Then click on the indicated button which will replace the highlighted text with the selected variable.

7. Now click on the Next button.

8. Now we will define the files to use for the variable we specified.  Use the filechooser brought up by the add files button with multiple select, or use it multiple times to build up the list of input images.

9. Once the files have been added, click the Next button.

10. Select 1 in Simultaneous Processes.  The reason for this is two-fold.  First, since we are doing an incremental export we must assure that one export completely finished before another one starts so that we are not left with incomplete frames.  Also the RPF exporter already takes advantage of system resources by running individual frames simultaneously.  Now click Finish, and you are all set to grab a soda and watch the progress bar.


General Note on Advanced RPF Batching

Most of the options specified in the RPF exporter are written into a text .ATT file which is used when exporting.  Any option in this file can be placed on the command line, and thus can be used as a variable in batch.  This file can be seen by using the "File" Save Attributes" command in the RPF exporter.  The variable replacment can be done as is shown in steps 4 through 6.  For assigning the variables, if the dialog in Step 9 proves inadequate, you can use the buttons on that page to save the variables out to a file (.BLS) and edit them by hand in a text editor.  Then they can be loaded back in.  The command files (.BCF) can also be edited by hand and loaded back in of steps 4 through 6.