| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Examples :: Related |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| MFILE * | String | Input file name, folder, or text file | 1 - 192 | See parameter description |
| DBIC | Integer | Input raster channel or channels | 0 - 1024 | |
| FILO * | String | Output merged file name | 1 - 192 | |
| FTYPE | String | Output file type | 0 - 4 | Default: PIX |
| FOPTIONS | String | Output file options | 0 - 192 | |
| EXTENT | String | Output file extent | 0 - 12 | UNION|INTERSECTION Default: UNION |
| NODATVAL | Float | NoData value of output file | 0 - 1 | |
| RESAMPLE | String | Resampling method | 0 - 5 | See parameter description Default: NEAR |
| Back to top |
MFILE
The name of a file, or a folder or text file that contains the data to process. If necessary, you can use a wildcard (*) in the string.
MFILE;DBIC
If the combination of parameters is invalid for an input file, a warning message displays, and no processing occurs. However, if the output file or its associated directory already exists, the processing is aborted.
DBIC
The channel or channels in the input file to process. If no value is specified for this parameter, DATAMERGE processes all channels in the source file.
This parameter may be overridden by an entry in a text file when one is specified for the MFILE parameter.
Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.
FILO
The name of the output file to which to write the merged bands.
A file with the same name must not exist in the folder; otherwise, processing stops, and an error message is displayed.
FTYPE
The format of the output file. The format must be a GDB-recognized type.
For a complete list of GDB-recognized file types, see GDB-supported file formats.
FOPTIONS
The file-creation options to apply on creating the output file. These are specific to the format of the file. In each case, the default of no options is allowed. You can specify the compression schemes, file-format subtypes, and other information.
Different options are available for each type, as described for the FTYPE parameter.
For a complete list of GDB-recognized file types, see GDB-supported file formats.
This parameter is optional.
EXTENT
The definition of the extents of the output file.
NODATVAL
The pixel value to use as the NoData value in the output file.
All output pixels that do not have a value assigned by the merge process will be assigned a NoData value.
The NoData value must fall within the range of the output raster data type.
If no value is specified for this parameter, the NO_DATA_VALUE from the file or channel metadata is used, if it exists.
This parameter is optional.
The following table provides some use scenarios of how DATAMERGE processes the NODATVAL parameter.
| When the value of NODATVAL is | And an input channel | Then |
|---|---|---|
| Specified | Has a NO_DATA_VALUE in either file or channel metadata |
|
| Does not have a NO_DATA_VALUE in either file or channel metadata |
|
|
| Has a NO_DATA_VALUE in both the file and channel metadata |
|
|
| Not specified | Has a NO_DATA_VALUE in either the file or channel metadata |
|
| Does not have a NO_DATA_VALUE in either the file or channel metadata |
|
|
| Has a NO_DATA_VALUE in both the file and channel metadata |
|
RESAMPLE
The resampling method to use to determine the output pixel values.
| Back to top |
You can use DATAMERGE to merge image channels from separate files with georeferencing information into a single output file. Only the selected channels from the input files in the output file are moved.
DATAMERGE uses the projection information and pixel size from the first file in the list to set the projection and pixel size in the output file. If you want to use the projection and pixel size from a specific file, you can do so by specifying it in an input MFILE. The file containing the project and pixel size must be the first in the list; alternatively, you can rename the input files so that file is the first one in the folder.
The order in which files are entered per the MFILE parameter determines the order of the channels in the output file. For example, the first file is the first channel, the second file is the second channel, and so on.
| Back to top |
Merge image band files in DataMerge.txt into one PCIDSK file, called Merged.pix, the extents of which will be a union (UNION specified for EXTENT) of the extents of all of the input files.
DataMerge.txt contains four lines of band file names:
"C:\DEMO\po_123456_red.pix" "C:\DEMO\po_123456_grn.pix" "C:\DEMO\po_123456_blu.pix" "C:\DEMO\po_123456_nir.pix"
EASI>MFILE="Demo/DataMerge.txt" EASI>DBIC= EASI>FILO="Demo/Merged.pix" EASI>FTYPE= EASI>FOPTIONS= EASI>EXTENT="UNION" EASI>NODATVAL= EASI>RESAMPLE= EASI>r DATAMERGE
Merge image band files in DataMerge.txt into one PCIDSK file, called Merged2.pix, the extents of which will be an intersection (INTERSECTION specified for EXTENT) of the extents of all of the input files.
DataMerge.txt contains four lines of band file names:
"C:\DEMO\po_123456_red.pix;1" "C:\DEMO\po_123456_grn.pix;2" "C:\DEMO\po_123456_blu.pix;3" "C:\DEMO\po_123456_nir.pix;1,2,3"
EASI>MFILE="DataMerge.txt" EASI>DBIC= EASI>FILO="Merged2.pix" EASI>FTYPE= EASI>FOPTIONS= EASI>EXTENT="INTESECTION" EASI>NODATVAL= EASI>RESAMPLE= EASI>r DATAMERGE
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.