ADSADJUST

Adjust the ADS model in an ADS dataset


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

Back to top

Description


ADSADJUST adjusts the ADS math model in an ADS dataset.
Back to top

Parameters


adsadjust(fili, mmseg, filo, backup)

Name Type Caption Length Value range
FILI * str Input file name 1 -    
MMSEG List[int] Input math-model segment 0 - 1  
FILO * str ADS file for model adjustment 1 -    
BACKUP str Create backup copy of adjustment files 0 - 5 TRUE|FALSE
Default: TRUE

* Required parameter
Back to top

Parameter descriptions

FILI

The name of a PCIDSK file that contains the ADS math model.

MMSEG

The input ADS math-model segment of the input raw image. If no value is specified for this parameter, the last math-model segment in the input file is used.

FILO

The file name of the ADS dataset for which to adjust the model.

BACKUP

If you already have an existing adjusted orientation data file (*odf.adj), you can create a backup copy of the file. The name of the backup file will be *.odf.adj.backup.

If no value is specified for this parameter, any existing adjustment orientation data files are overwritten by default.

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

The following example updates the adjusted orientation files (*.adf.adj) in the output folder.

from pci.adsadjust import adsadjust
from pci.exceptions import *
fili = "demo/L1/pix" # input folder with updated math model in PIX files
mmseg = []       
filo = "demo/L1/sup"  # output folder of ADS L1 support (*.sup) and related files
backup = ""               # if .odf.adj file is exists, create backup
adsadjust(fili, mmseg, filo, backup)
            
            

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