TPREFN

Tie point refinement


EnvironmentsPYTHON :: EASI :: MODELER
Quick linksDescription :: Parameters :: Parameter descriptions :: Return Value :: Details :: Example :: Related

Back to top

Description


TPREFN automatically refines tie points (TP) in a CATALYST Professional OrthoEngine project file by eliminating those with large residual errors, based on various modeling methods.
Back to top

Parameters


tprefn (oeproji, reject, oeprojo, pointopt, imstat)

Name Type Caption Length Value range
OEPROJI * str Input OrthoEngine Project 1 -    
REJECT List[float] Rejection method 0 - 6 See parameter description
OEPROJO str Output OrthoEngine Project 0 -    
POINTOPT * str Input OrthoEngine point option 3 -   INACT | DEL
Default: INACT
IMSTAT List[float] Output TPREFN statistics 0 -    

* Required parameter
Back to top

Parameter descriptions

OEPROJI

The name of the input CATALYST Professional OrthoEngine project file that contains the TPs to refine.

REJECT

The method to use to reject TPs.

This parameter is defined by the following parameters:

<MODE>, <PARAM1>, <PARAM2>, <MAXPT>, <MINPT>, <REMOVE_BLUNDER>
Default values are 5.0, 2.0 ,2.0, 0.0, 0.0 ,1. [RMS-error rejection].

OEPROJO

The name of the output OrthoEngine project file that contains the refined TPs.

If no value is specified for this parameter, the changes are written to the input project file.

POINTOPT

Whether to delete (DEL) rejected points or render them inactive (INACT). By default, points are rendered inactive.

IMSTAT

On completion of processing, TPREFN updates IMSTAT with information that may be useful in a scripting environment, as follows:
Back to top

Return Value

Returns: Execution status

Type:  PCI_INT

The return value is 0 when successful and 1 when it fails. This function may also throw an exception when it fails. On success or failure of processing a report is created. Reviewing the report can aid with troubleshooting.

Back to top

Details

TPREFN eliminates TPs that have the highest residuals, based on the calculation of the math model for an image. You can run the algorithm on any OrthoEngine project file that contains TPs. Details, such as orbit information or RPCs, are read from the project file. TPREFN uses the math model derived from the supplied project to compute the residuals of existing TPs.

TPs that are deemed undesirable can be rejected by using various rejection methods. For more information see the REJECT .

TPREFN saves an updated project file with a refined set of tie points and with updated math-model parameters.

Note: Any inactive points in the specified OrthoEngine project are copied to the output project file.
Note: If the specified OrthoEngine project includes any inactive images, they are excluded from processing.
Important: The system DEM file gmted2010 must be installed as part of the CATALYST Professional distribution. This file is used to compute approximate ground coordinates of the TPs.
Back to top

Example

Eliminate TPs that have suspect residuals in airphoto_model.prj.

from pci.tprefn import tprefn

oeproji	=	"airphoto_model.prj"
reject	=	[1, 5, 5]
oeprojo	=	"a.prj"
pointopt =      "inact"

tprefn (oeproji, reject, oeprojo, pointopt )

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