| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Return Value :: Details :: Example |
| Back to top |
| Back to top |
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 - |
| Back to top |
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 |
Returns: execution status
Type: PCI_INT
| Back to top |
| Back to top |
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.