| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Return Value :: Details :: Example |
| Back to top |
| Back to top |
mergeband(mfile, filo, rpcfile)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| MFILE * | str | Input file name, directory, or text file | 1 - 192 | |
| FILO * | str | Output file | 1 - | |
| RPCFILE | str | RPC text file | 0 - |
| Back to top |
MFILE
Specifies a particular file or multiple files containing images to be merged. Wildcards (*) can be used.
FILO
Specifies the output PCIDSK file that will contain the merged bands.
If the file already exists, the program displays an error and exits.
RPCFILE
Specifies the name of the input RPC text file that provides the coefficients that define the rational functions math model for the scene.
If this parameter is not specified, MERGEBAND automatically finds the RPC text file in the same folder as the input image files. The RPC text file name must have the same base name as one of the image file names, with the suffix "_rpc.txt".
| Back to top |
Returns: execution status
Type: PCI_INT
| Back to top |
Because of CD size limitations, some high-resolution satellite data, such as IKONOS, is distributed with an RPC file and the four channels (blue, green, red, and NIR) in separate NITF or TIFF files. MERGEBAND recombines the four channels into a single multi-channel file and imports the RPC file.
The order in which the files is entered using the MFILE parameter sets the order of the channels. For example, the first file is the first channel, the second file is the second channel, and so on.
The RPC file is a text file that provides the coefficients that define the rational functions math model for the scene.
If the RPCFILE parameter is not specified, MERGEBAND automatically finds the RPC text file in the same folder as the image files. The RPC text file name must have the same base name as one of the image file names with "_rpc.txt" appended
| Back to top |
"C:\Demo\po_123456_red_0000000.tif" "C:\Demo\po_123456_grn_0000000.tif" "C:\Demo\po_123456_blu_0000000.tif" "C:\Demo\po_123456_nir_0000000.tif"
from pci.mergeband import mergeband mfile = "MergeBandList.txt" filo = "Merged.pix" rpcfile = "" mergeband(mfile, filo, rpcfile)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.