| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
| Back to top |
| Back to top |
imagecos(fili, filo, dbic, dboc)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILI * | str | Input file name | 1 - | |
| FILO | str | Output file name | 0 - | |
| DBIC * | List[int] | Input raster channel(s) | 1 - | |
| DBOC | List[int] | Output raster channel(s) | 0 - |
| Back to top |
FILI
Specifies the name of the PCIDSK file from which image data is to be converted to cosine.
FILO
Specifies the name of the output file to receive the cosine of input image image channels.
If FILO does not exist, a new PCIDSK file will be created. By default, the georeferencing information from the input file (FILI) is copied to the new output file (FILO).
DBIC
Specifies the input channel(s) to be processed.
DBOC
Specifies the output image channel(s) produced by taking the cosine of the specified input image channel(s) (DBIC).
If FILO does not exist, DBOC should be empty.
Duplicate output channels are NOT allowed.
The total number of input channels (DBIC) must be equal to the total number of output channels (DBOC).
| Back to top |
IMAGECOS takes all the pixel values from the input channel(s) and calculates the cosine value, placing those values in the output channels(s).
The output channel(s) must be 32-bit real.
| Back to top |
Calculate cosine values for channel 1 to 5 of irvine.pix.
from pci.imagecos import imagecos fili = "irvine.pix" filo = "orvine.pix" # create new output file dbic = list(range(1, 5 + 1)) # input channels dboc = [] # five 32R channels are automatically created imagecos( fili, filo, dbic, dboc )
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.