GEOCODEDEM

Geocode DEM from epipolar DEM


EnvironmentsPYTHON :: EASI :: MODELER
Batch ModeYes
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: References :: Related

Back to top

Description


GEOCODEDEM geocodes epipolar or InSAR digital elevation models (DEMs) by reprojecting to the specified ground coordinate system.
Back to top

Parameters


Name Type Length Value range
Input: Input epipolar DEM channel Raster port 0 - 1  
InputMMLeft: Input left math model segment * BIN port 1 - 1024  
InputMMRight: Input right math model segment * BIN port 1 - 1024  
InputEpipolarHeader: Input epipolar header * BIN port 1 - 1024  
Input window Integer 0 - 4 Xoffset, Yoffset, Xsize, Ysize
Elevation failure value Float 0 - 1 Default: -100
Background elevation value Float 0 - 1  
Fill holes String 0 - 1 YES | NO
Default: YES
Epipolar DEM clipping String 0 - 1
Epipolar DEM clipping units String 0 - 1 Pixels | Percent
Default: Pixels
OutputGeocodedDEM: Output geocoded DEM file * Raster port 1 -    
Elevation reference String 0 -   MSL | ELLIPS
Elevation units String 0 - 1 METER | FEET | US_FEET
Default: METER
Map projection String 0 -   Default: None
Upper left coordinate Float 0 - 2  
Lower right coordinate Float 0 - 2  
Output pixel ground size (X,Y) Double 0 - 2  
Merge geocoded DEM option String 0 - 1 LAST | AVERAGE | SCORE | BLEND
Default: BLEND
Working Memory Size (MB) Integer 0 - 1 Default: 2000
Report String 0 - 192 See parameter description

* Required parameter
Back to top

Parameter descriptions

Input: Input epipolar DEM channel

Optionally specifies the input channel that contains the digital elevation model (DEM) to be extracted.

If this parameter is not specified, the function automatically searches the image, DEM, and, optionally, the correlation score (DBSCORE) channels from the input file. By default, the function will geocode the second channel in the input file.

InputMMLeft: Input left math model segment

Specifies the left math model segment for the epipolar digital elevation model (DEM) layer.

InputMMRight: Input right math model segment

Specifies the right math model segment for the epipolar digital elevation model (DEM) layer.

InputEpipolarHeader: Input epipolar header

Specifies the header for the epipolar DEM layers.

Input window

Specifies the raster window, in pixel and line coordinates, that is read from the input epipolar images. If this parameter is not specified, the entire layer is used by default.

Xoffset, Yoffset define the upper-left starting pixel coordinates of the window. Xsize is the number of pixels that define the window width. Ysize is the number of lines that define the window height.

If UPLEFT (Upper Left Coordinate) and LORIGHT (Lower Right Coordinate) are specified, this parameter is ignored.

Elevation failure value

Specifies the value given to pixels for which the generation of elevation values failed. This value should be outside the range of valid elevation values. The failure value identifies the areas that can be interpolated and filled.

Background elevation value

Optionally specifies the background elevation value of the input and output DEM.

When the empty DEM file is first created, the function fills the entire DEM channel with the specified background elevation value. In the final DEM file, this value indicates areas that have no stereo images from which to extract elevation values.

Select a value that is different from the Elevation Failure Value (FAILVALU) and that is not a valid extracted elevation value for the area. For example, setting this parameter to 0 in a coastal area is a poor choice because a valid extracted elevation can match this value. If the FAILVALU and the NO_DATA_VALUE/BACKELEV value are the same then the algorithm will exit with an error.

If this parameter is not specified, the function checks for ELEVATION_BACKGROUND or NO_DATA_VALUE metadata tags, first at the channel level, then at the file level. If this value is not specified or found in the metadata, the function uses the default value of -32768.

If this parameter is specified and the NO_DATA_VALUE metadata tag is found in the input file then the algorithm will exit with an error. Overridding the NO_DATA_VALUE with this parameter can cause errors that are hard to diagnose. To fix the error do one of the following:
  1. Modify the NO_DATA_VALUE value in the input file. If the NO_DATA_VALUE is wrong then choose this option.
  2. Leave the BACKELEV parameter blank. If the NO_DATA_VALUE is correct then choose this option.
  3. Set the BACKELEV to the same value as the NO_DATA_VALUE. This is an alternative to solution 2.

Fill holes

Specifies whether to automatically edit the DEM.

Supported options are:

Epipolar DEM clipping

Specifies the amount of data to be clipped from the epipolar DEMs before merging and geocoding them. This functionality is possible only when OutputGeocodedDEM is specified.

This parameter specifies the amount of the actual image data that is clipped, in pixels or percentage, as specified by the Epipolar DEM Clipping Units parameter.

Two values can be entered:

The default is blank, which means no clipping occurs. The maximum percentage value is 49%.

Epipolar DEM clipping units

Specifies the units for Epipolar DEM Clipping.

This parameter specifies the amount of the actual image data that is clipped, in the pixels or percentage as specified by the Epipolar DEM Clipping Units parameter.

Available options are:

OutputGeocodedDEM: Output geocoded DEM file

Specifies the name of the generated geocoded digital elevation model (DEM) file.

Elevation reference

Elevation units

The units of the elevation values that are stored as pixel values in the generated geocoded DEM.

Acceptable values are as follows:

If you specify the elevation values as FEET, the conversion factor to meters is 0.3048 (corresponding to International Feet); if you specify US_FEET, the conversion factor is 1200/3937 (corresponding to U.S. Survey Feet).

If you do not specify a value for this parameter, the value of the ELEVATION_UNITS metadata tag of the DEM channel specified by DBEC is used. If the tag does not exist in the DEM, the default value is used.

Map projection

Specifies the projection string for the output DEM. If not specified, the map units are determined automatically.

The standard definitions are as follows:

If METER or FEET is specified, the math model and DEM must be METER or FEET.

If a regular, Earth-referenced projection is specified, the math model and DEM must also use a regular projection (not necessarily the same one); METER and FEET are not allowed.

The label of a user-defined projection may also be specified, if the projection exists in the userproj.txt file. Otherwise the projection parameter information must be provided as a string separated by the vetical bar ('|'). The projection parameter string defines 18 parameters delimited by spaces, including Dearth, RefLong, RefLat, StdParallel1, StdParallel2, FalseEasting, FalseNorthing, Scale, Height, Long1, Lat1, Long2, Lat2, Azimuth, LandsatNum, LandsatPath and UnitsCode. For instance, the projection named 'France93' may be specified as:
LCC D350 | 0 0 3.0 46.5 44.0 49.0 700000 6600000 0 0 0 0 0 0 0 0 0 -1

This parameter can specify the UTM grid zone number and row, and Earth model, as follows:

UTM [mm] [r] [Ennn]

where:

The Earth model can be specified for LONG/LAT (and other units except METER or FEET), as follows:

LONG/LAT [Ennn]

This parameter can specify the SPCS zone number and Earth model as follows:

SPCS [mmmm] [Ennn]

where [mmmm] is is the four-digit zone number.

If the Earth model is not specified, it is assumed to be E000 (Clarke 1866).

If MAPUNITS is not specified, the logic for determining a default ortho coordinate system is as follows:

Upper left coordinate

Optionally specifies the upper-left ground X and Y coordinates, in map units, for the output geocoded DEMs.

If this parameter is not specified, GEOCODEDEM calculates and uses the upper-left corner coordinate from the input DEM file.

Lower right coordinate

Optionally specifies the lower-right ground X and Y coordinate, in map units, for the output geocoded DEMs.

If this parameter is not specified, GEOCODEDEM calculates and uses the lower-right corner coordinate from the input DEM file.

Output pixel ground size (X,Y)

Optionally specifies the resolution of the generated pixels. If this parameter is not specified, the resolution is automatically determined from the input epipolar DEM files.

The units of this parameter must be the same as the units of the math models used to generate the epipolar DEM. For images using the RPC math model, this is generally LONG/LAT; for most other math models, it is a projected coordinate system in meters or feet.

If multiple epipolar DEMs are provided, the first DEM processed is used to determine the units and resolution.

Merge geocoded DEM option

Optionally specifies the DEM merging option to use when multiple epipolar DEMs are geocoded and added to the output DEM file.

When a new geocoded DEM is added to the file and it overlaps an existing geocoded DEM, you must specify the method by which to determine the pixel value to use.

Valid methods are:

Working Memory Size (MB)

The amount, in megabytes (MB), of internal memory to allocate to processing.

Report

Specifies where to direct the generated report.

Available options are:

Back to top

Details

Geocoding reprojects the epipolar digital elevation model (DEM) to the ground coordinate system at a given ground resolution. This component uses a set of epipolar DEMs, geocodes them, and then merges them into one file. Alternatively, it can process one or more interferometric SAR (InSAR) DEMS in the raw SAR image geometry, and with rational function math model. The InSAR DEMs have no score channel, and no SAR image is expected in the input DEM file.

Back to top

References

DEM Geocoding Module Refactor Report. PCI Report.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.