OEBUNDLEOPT

Update OrthoEngine project file


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

Back to top

Description


OEBUNDLEOPT updates a CATALYST Professional OrthoEngine project file with new bundle options.
Back to top

Parameters


oebundleopt(oeproji, oeprojo, trimode, absopt, maxiter, xyzthr, angthr, refract, radearth)

Name Type Caption Length Value range
OEPROJI * str Input OrthoEngine project file 1 -    
OEPROJO * str Output OrthoEngine project file 1 -    
TRIMODE str Triangulation method 0 - 6 TRAD|ENFIT|RELABS|REL|ABS|FN
Default: TRAD
ABSOPT str Absolution-orientation options 0 - 6 3DTR|LINEAR|POLY2|POLY3|POLY3D
Default: 3DTR
MAXITER List[int] Maximum number of adjustment-computation iterations 0 - 1 1 - 999
Default: 100
XYZTHR List[float] Threshold of convergence on camera position 0 - 1 0.0 -
Default: 0.10
ANGTHR List[float] Convergence threshold of EO angles 0 - 1 0.0 -
Default: 0.50
REFRACT str Apply atmospheric refraction correction 0 - 3 Default: ""
RADEARTH List[float] Earth radius to use in curvature correction 0 - 1 6000000 - 23000000

* Required parameter
Back to top

Parameter descriptions

OEPROJI

The path and file name of the input OrthoEngine project file.

OEPROJO

The path and file name of the output OrthoEngine project file.

TRIMODE

The triangulation method to use.

You can choose from the following options:

ABSOPT

The options for absolute orientation when the triangulation mode is either Abs (absolute) or RelAbs (relative absolute).

You can choose from the following options:
Note: This parameter is optional; however, if you do not specify a value, the 3DTR option applies by default.

MAXITER

The maximum number of iterations that the adjustment computation can perform before finishing. The default value is 100.

XYZTHR

The criteria for bundle-adjustment convergence for the camera positions. The units are in meters or feet, depending on the map projection defined in the project file. The default value is 0.1.

ANGTHR

The convergence threshold, in degrees, for the EO angles. The default value is 0.5.

REFRACT

Specifies whether to apply atmospheric refraction correction when doing bundle adjustment. Available options are:

It is well known that density and hence of refraction of the atmosphere decreases with increased altitude. Because of this condition, light rays do not travel in straight lines though the atmosphere, but rather are bent according to Snells law. Refraction causes all imaged points to be displaced outward from their correct positions.To correct for refraction, the following formula is used:

dref = K(r + r3/c2 )

where K = (( 2410 * H / (H * H) - 6 * H + 250) - (2410 * ((h * h) / ((h * h) - 6 * h + 250) * H )) 10e-6

These equations are based on a model atmosphere defined by the US Air Force. The flying height H and the ground elevation h must be in units of kilometers.

RADEARTH

Specifies the radius value, in meters, of the Earth in the working area.

If this parameter is not specified, errors caused by the curvature of the Earth are not corrected. This is the default.

An average value of 6,372,200 meters can be used, depending on the GCP unit.

Back to top

Return Value

Returns: program execution status

Type:  PCI_INT

The return value is 0. This function returns a result only if it runs successfully; otherwise, processing stops, and an error message is displayed.

Back to top

Details

OEBUNDLEOPT updates an OrthoEngine project file with new bundle options; typically, after running CRPROJ.

Back to top

Example

from pci.oebundleopt import oebundleopt

oeproji = 'airphoto_model.prj' # input project file
oeprojo = 'out.prj' # output project file
trimode = 'trad'
absopt = 'linear'
maxiter = [10]    # iterate the adjustment a maximum of 10 times
xyzthr = []		  # use the default camera position ...
angthr = []		  # ... and orientation-angle-convergence criteria
refract = ""
radearth = []
oebundleopt(oeproji, oeprojo, trimode, absopt, maxiter, xyzthr, angthr, refract, radearth)

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