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


Name Type Caption Length Value range
FILI * String Input file name 1 - 192  
FILO String Output file name 0 - 192  
DBIC * Integer Input raster channel(s) 1 -    
DBOC Integer 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.

Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.

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).

Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.

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.

EASI>fili	=	"irvine.pix"	! input file    
EASI>filo	=	"orvine.pix"	! create new output file
EASI>dbic	=	1, -5	! input channels
EASI>dboc	=		! five 32R channels are automatically created

EASI>RUN IMAGECOS

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