IMAGECOS

Trigonometric cosine of raster data


EnvironmentsPYTHON :: EASI :: MODELER
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


Finds the cosine values in image channels between two image files or within one image file.
Back to top

Parameters


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 -    

* Required parameter
Back to top

Parameter descriptions

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

Details

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

Example

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.