| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| MFILE | String | Input file name, directory, or text file | 0 - 191 | |
| FILO | String | Output file name | 0 - 192 | |
| DBOC | Integer | Output raster channel | 0 - 1 | |
| PROJECT | String | Output projection | 0 - 16 | LONG/LAT, SPAF, SPCS, SPIF, UPS, UTM |
| ZONE | Integer | Output projection zone number | 0 - 1 | |
| ROW | String | Output projection row | 0 - 1 | A - Z |
| ELLIPS | String | Output ellipsoid or datum code | 0 - 64 | |
| LLBOUND | String | Boundary coordinates are longitude/latitude | 0 - 1 | Y, N Default: Y |
| ULX | String | Upper-left X coordinate of output image | 0 - 32 | |
| ULY | String | Upper-left Y coordinate of output image | 0 - 32 | |
| LRX | String | Lower-right X coordinate of output image | 0 - 32 | |
| LRY | String | Lower-right Y coordinate of output image | 0 - 32 | |
| BXPXSZ | String | Horizontal pixel size | 0 - 32 | |
| BYPXSZ | String | Vertical pixel size | 0 - 32 | |
| BACKVAL | Float | Background value | 0 - 1 | |
| RESAMPLE | String | Resampling method | 0 - 5 | NEAR, BILIN, CUBIC Default: NEAR |
| TFILE | String | Text file name | 0 - 191 | |
| FTYPE | String | Output file type | 0 - 3 | Default: PIX |
| FOPTIONS | String | Output file options | 0 - 191 |
| Back to top |
MFILE
Specifies a directory name, an image file name, or a text file name containing the input images to be processed. Wildcards (*) can be used.
MFILE can be set using any of the following options:
If the text file option is used, the following general rules apply:
FILO
Specifies the name of the output file to receive the merged image data. If not specified, no output file is created or processed.
DBOC
Specifies the output channel to receive the merged image data. The default value is 1; if DBOC (Output) does not exist, IMERGE adds a new channel and automatically sets the value of DBOC (Output) to the index of the newly created channel.
PROJECT
Specifies the projection of the output file. If not specified, uses the map projection from the input files.
ZONE
If the projection is equal to UTM or State Plane, specifies the zone number of the output projection; otherwise, this parameter is not used.
ROW
If the projection is equal to UTM or UPS, specifies the row number for the projection; otherwise, this parameter is not used.
Acceptable values for this parameter are A through Z.
ELLIPS
Specifies the output ellipsoid or datum code to use to define the shape of the Earth. If defaulted, the earth model from the input files is used.
For a detailed list of supported ellipsoids, see the Projections reference section.
LLBOUND
Specifies whether the bounds are longitude and latitude coordinates. If they are, set this parameter as Y or y (for YES). This is the default value.
If they are projection meters or feet, set as N or n.
ULX
Specifies the X (horizontal) bound of the upper left corner of the output image. If not specified, the minimum X coordinate from the input files is used.
ULY
Specifies the Y (vertical) bound of the upper left corner of the output image. If not specified, the maximum Y coordinate from the input files is used.
LRX
Specifies the X (horizontal bound of the lower right corner of the output image. If not specified, the maximum X coordinate from the input files is used.
LRY
Specifies the Y (vertical) bound of the lower right corner of the output image. If not specified, the minimum Y coordinate from the input files is used.
BXPXSZ
Specifies the horizontal pixel size of the output image. If defaulted, uses the minimum horizontal pixel size from the input files.
BYPXSZ
Specifies the vertical pixel size of the output image. If defaulted, uses the minimum vertical pixel size from the input files.
BACKVAL
Specifies the background value of the input image channel.
Pixels having the specified background value are interpreted as non-image values and are not transferred to the output file; this ensures that the output image contains only valid data from the input images.
If defaulted, the background value is zero (0).
RESAMPLE
Specifies the resampling method to use for the output image.
TFILE
Specifies the name of the text file containing information for merging the input files. If this parameter is not specified, no text file is read from or written to. If this parameter is specified and exists, the steps in the file are used when IMERGE is run, and the steps followed are recorded in the file before IMERGE exits. In addition to acting as a processing log for IMERGE, this parameter is a means of controlling IMERGE.
The text file specified by TFILE consists of several records. Each record starts with the record identifier of four or more characters. (Any characters after the fourth character are not used, but may be present. The characters may be lower- or upper-case.) Other fields on the record are separated by one or more spaces. Commas may also be used as field separators. Each record may be up to 132 characters and is terminated by the Return key (or the Enter key).
The order of the FILE records specifies the order of processing, but the order of any other records in the text file does not matter. Any LONG/LAT values are specified either as degrees, minutes, seconds, and hemisphere, with no spaces or commas separating the subfields, or as decimal degrees.
The TFILE records are as follows:
"PROJ UTM 11 S E000"
"ULX 100000.0" "ULY 5000000.0" "LRX 300000.0" "LRY 4900000.0"
"BXPX 1000.0" "BYPX 1000.0"
"BACK 0.000000"
"RESA NEAR"
"OTYP 1"
Input CHANNEL and FILE to merge: The files are merged in the order in which they are read in the text file. For example, the following merges channel 1 and then channel 2 from file_a and then channel 1 from file_b. It does not matter whether the CHAN field (and channel number) is specified before the FILE field (and file name) or vice versa. File names are assumed to be prefixed by their full path name.
"CHAN 1 FILE file_a" "CHAN 2 FILE file_a" "FILE file_b CHAN 1"
The output BOUNDS and PSIZE are assumed to be in the PROJUNITS. For example, if PROJUNITS is set to "LONG/LAT", the bounds and pixel size are either in degrees, minutes, seconds, hemisphere, or in decimal degrees.
PROJ LONG/LAT E000 ULX 117d45'00.00"W ULY 33d45'00.00"N LRX 117d30'00.00"W LRY 33d30'00.00"N BXPX 0d00'01.00" BYPX 0d00'01.00" BACK 0.000000 RESA NEAR OTYP 1 CHAN 1 FILE ifiles~/longlat.pix
If PROJUNITS is set to "UTM zone" the bounds are in UTM E. and N. and the pixel size in UTM meters. For example:
PROJ UTM 11 S E000 ULX 100000.0 ULY 5000000.0 LRX 300000.0 LRY 4900000.0 BXPX 1000.0 BYPX 1000.0 BACK 0.000000 RESA NEAR OTYP 1 CHAN 1 FILE file_a CHAN 1 FILE file_b
FTYPE
FOPTIONS
Specifies the options for creating the output file. These are specific to the file format, and in each case a no-option default is allowed. FOPTIONS can be used to specify the compression schemes, file format subtype, or other information.
For example, FOPTIONS="LZW", which means to use a Lempel-Ziv Welch compression.
| Back to top |
IMERGE automatically merges a set of geocoded images or digital elevation model (DEM) files into a single image or DEM file. This function is most commonly used to merge DEM files.
If MFILE is a text file, the files and parameters listed in the text file are used. For IMERGE, the parameters in the text file must be delimited by semi-colons.
The area of interest to use for the output image can be specified (ULX, ULY, LRX, LRY); otherwise, the maximum bounds of the input image files are used.
LLBOUND specifies whether ULX, ULY, LRX, and LRY are longitude and latitude values (LLBOUND="Y") or output projection units (LLBOUND="N").
The pixel resolution for the output image can be specified (BXPXSZ, BYPXSZ); otherwise, the minimum pixel resolution from the input files is used.
If ELLIPS is defined, it takes precedence over any ellipsoid defined in the PROJECT parameter.
| Back to top |
Merge the DEM files to form a single DEM output file.
EASI>MFILE = "*.pix" !All files in this directory EASI>FILO = "single_dem.tif" !Output to TIF file EASI>DBOC = !Output to new created TIF file Channel 1 EASI>PROJECT = !LONG/LAT from the input files EASI>ZONE = !Only used if project is "UTM" or "SPCS" EAS>ROW = !Only used if project is "UTM" or "UPS" EASI>ELLIPS = !E008 from the input files EASI>LLBOUND = !Default is "Y" EASI>ULX = !Default is minimum X of input files EASI>ULY = !Default is maximum Y of input files EASI>LRX = !Default is maximum X of input files EASI>LRY = !Default is minimum Y of input files EASI>BXPXSZ = !Default is smallest X size of input files EASI>BYPXSZ = !Default is smallest Y size of input files EASI>BACKVAL = !Default is 0.0 EASI>RESAMPLE = !Default is "NEAR" EASI>TFILE = !Default,do not read from or write to TFILE EASI>FTYPE = "TIF" !Output to TIF file EASI>FOPTIONS = EASI>RUN IMERGE !Run image merge
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.