You can use the Subset tool in batch mode to perform this task. You will have to add a variable for the bands that you want to subset and you will also need to create a text file that lists the full path and filename of the input image along with each band number that you want to use to create each individual image file.
The first thing you need to do is create the text file that contains a list with the full path and filename of the input image along with a single band number on each line. The filename and band number must be separated by a single space. Using a simple text editor such as ERDAS IMAGINE’s built-in text editor found under the Tools menu is ideal (Tools > Edit Text Files). Save this file with a .txt extension. An example of how your text file will look is provided below:
-Open the Subset tool (Data Prep > Subset Image).
-Select your input file.
-Choose a location and a root name for your output image files.
-Enter “1” in the Select Layers field.
-Choose the Batch button to launch the Batch Commands wizard.
-Select the Modify commands automatically option and click the Next button.
The command should look similar to the following:
modeler -nq subset.pmdl -meter -state "$(Input)" Integer 1 "$(Output)" Unsigned_8_bit Integer '$(Input.Ulx)' '$(Input.Uly)' '$(Input.Lrx)' '$(Input.Lry)' Map useall Continuous "Continuous" "Continuous" "None" '' '' ''
-Click on the Variables tab and click the New button.
-Enter “band” for the name of the new variable, leave the Type set to User, and press the key.
-Highlight the “Output” variable and change the part of the pattern “$(Input.root)” to “$(band)”.
-Click on the Commands tab and highlight the number “1” in the command line which is found after “Integer”.
-You will see a drop-down-menu box containing the word "Input" near the bottom of the Batch wizard. Click on that box and change the selection to the "band" variable instead.
-Click on the second icon to the right...the icon for "Replace the current argument with the variable". This will change the number “1” in the command line to "$(band)".
The command should now look similar to this:
modeler -nq subset.pmdl -meter -state "$(Input)" Integer $(band) "$(Output)" Unsigned_8_bit Integer '$(Input.Ulx)' '$(Input.Uly)' '$(Input.Lrx)' '$(Input.Lry)' Map useall Continuous "Continuous" "Continuous" "None" '' '' ''
-Click the Next button.
-Highlight the “Input” and “band” columns in the batch tool by holding the key and clicking on the column heading.
-With the columns highlighted, right-click on one of the column headings and select Import.
-Select your text file that you created earlier which contains full path and filename of the input image along with a single band number on each line.
-In the Import Column Data dialogue select the Options button, and set the Separator Character to "WhiteSpace" in the Import Column Options dialog.
-Click OK to return to the Import Column Data dialog.
-Click OK to import your columns into the Batch tool.
-All of your columns should now be populated with the appropriate information.
-Click the Next button and then the "Finish" button to run the command.