OCMODEL


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

Back to top

Description


OCMODEL computes an RPC mathmodel starting from first principles of the geometry of the sensor. OCMODEL is designed for OpenCosmos
Back to top

Parameters


ocmodel(fili, tfile, filedem, option, filo)

Name Type Caption Length Value range
FILI * str Input file name 1 -    
TFILE * str Input ancillary.json file 1 -    
FILEDEM str Input ancillary.json file 0 -    
OPTION str 0 -    
FILO * str Output file name 1 -    

* Required parameter
Back to top

Parameter descriptions

FILI

Input imagery filename. This should either be an OpenCosmos composite PIX file or the an OpenCosmos RED band TIFF file. If a composite file, it must be aligned to the RED band for this PPF to produce accurate output.

TFILE

Input OpenCosmos 'ancillary.json' filename, the OpenCosmos 'metadata.json' filename should be in the same folder as the TFILE filename.

FILEDEM

Optionally, specify a DEM File to find the minimum and maximum elevation values to use for the RPC calculation. If blank, a default global DEM is used instead.

OPTION

Optionally, specify an additive correction factor to the skew angle used in the geometric calculations.

FILO

The output filename containing the imagery of the FILI file and the RPC mathmodel computed from the OpenCosmos metadata.
Back to top

Return Value

Returns: execution status

Type:  PCI_INT

The return value is 0. This function returns only if it executes successfully; otherwise, it throws an exception.

Back to top

Details

Back to top

Example

from pci.ocmodel import ocmodel
fili='opencosmos_composite_file.pix'
tfile='ancillary.json'
option='-0.1'
filo='output.pix'
ocmodel(fili,tfile,option,filo)
      

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