PYRINT

Fast pyramid-based interpolation


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

Back to top

Description


PYRINT is a fast-interpolation algorithm that fills holes in digital elevation models (DEMs) and imagery by using surrounding good-quality data pixels. The algorithm can also generate DEMs from raster-encoded points, break lines, and polygons.
Back to top

Parameters


Name Type Length Value range
Input Layer * String 1 -    
Output: Output layer * Mixed port 1 -    
Smoothing iterations Integer 0 - 2 Default: 2,4
Background grey-level value * Float 1 - 1024  
No Data value Float 0 - 1  
Interpolate across NoData * String 1 -    

* Required parameter
Back to top

Parameter descriptions

Input Layer

The path and file name of the GDB-supported input file that contains the raster image with holes to interpolate.

Output: Output layer

The output layer that will contain the interpolated raster data.

Smoothing iterations

The number of smoothing iterations for each internal step. Higher values produce smoother interpolations. If a second value is specified, it is used for the final (full) resolution level. Values should range from 0 to 10. If no values are specified, default values of 2,4 are applied. With points that are spaced closely, such as LIDAR data, values of 0,1 may produce a better result.

Background grey-level value

The background (or fail) value, which indicates where holes exist. Pixels equal to the background value are replaced with interpolated values.

No Data value

The NoData value. Pixels that equal the NoData value are ignored during interpolation. If no value is specified, the file metadata NO_DATA_VALUE is used (if it exists).

This parameter is optional.

Interpolate across NoData

The value you select specifies how interpolation treats the NoData values. To allow interpolation to cross over the NoData pixels, select Yes. To use the NoData pixels as a barrier, which the interpolation flows around, but not through, select No. With either selection, the NoData pixels are preserved in the final output.

Back to top

Details

PYRINT is a fast-interpolation algorithm used to fill holes–up to thousands of pixels across–in raster data. While it is effective especially with elevation data and imagery, it can also fill polygons (when the outlines have been burned into a raster image).

The input image is contained in the channel specified for DBIC in the input file specified for FILI. The output file (FILO) will be created with the same dimensions and projection as the input file (FILI) and the interpolated results will be put in channel one. The output file (FILO) cannot exist beforehand.

Holes in the imagery are indicated by pixels that have a value matching that specified for the BACKVAL parameter. In the interpolated output, pixels with a background (or fail) value (BACKVAL) are replaced with values interpolated from surrounding good-quality-data pixels.

If the imagery contains NoData values, this can be specified with the NODATVAL parameter. If no value is specified, the file metadata NO_DATA_VALUE is used (if it exists).

The value of CROSSNOD determines how interpolation treats NoData values. Selecting Yes allows interpolation to cross over the NoData pixels, while selecting No uses the NoData pixels as a barrier, which the interpolation can flow around, but not through. With either selection, the NoData pixels are preserved in the final output. The value specified for CROSSNOD applies only if a (NoData) value is specified for NODATVAL.

The interpolation process uses a pyramid approach and, as part of the process, smoothing is applied to remove artifacts. The value or values of SMOOTHIT determine the amount of smoothing to apply. The first value specifies the number of smoothing iterations to apply at various pyramid levels. The second value specifies the number to apply at the final level.

Higher values–for example, 5–produce very smooth results, but require more computation. If a value of 0 is specified, no smoothing is applied, but a "plating" effect will be evident, though this may be desirable for some types of interpolation, such as polygon fills with solid values. If no smoothing is specified, a default of two iterations per level and four on the final level is applied.

After running PYRINT, it is possible that some failed values may remain. Typically, these are failed pixels surrounded entirely by NoData values or when the imagery has to be processed in "chunks" due to the amount of data. This can usually be overcome by selecting Yes as the value of CROSSNOD.

Back to top

Algorithm

The PYRINT algorithm is proprietary to PCI Geomatics. It uses pyramid levels to produce interpolation, is extremely fast, and highly parallelized. PYRINT is optimized for filling in holes–even very large ones–in imagery and DEMs. It can also be used to interpolate between any mix of points, break lines, and polygons.

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