ISIS Application Documentation
ratio  Printer Friendly View  TOC  Home 
Divide two cubes
Overview  Parameters  Example 1  Example 2 
Parameter GroupsFiles

The numerator cube. All pixels in this cube will be divided by corresponding pixels in the denominator cube.
Type  cube 

File Mode  input 
Filter  *.cub 
The denominator cube. The number of bands in this cube must match the numerator cube or be exactly one. In the former case, a bandbyband division occurs. In the later, each numerator band is divided by the single denominator band.
Type  cube 

File Mode  input 
Filter  *.cub 
The output cube containing the results of the ratio. A NULL pixel will be output when either of the numerator or denominator pixels is special. Similarly, a NULL will be output if the denominator pixel is zero.
Type  cube 

File Mode  output 
Pixel Type  real 
Filter  *.cub 
Example 1Dividing one band by one band Description
This example presents dividing one band in a cube by a single band.
In this case, we divide band 5 by band 4 in peaks.cub and
generate a single band
output cube. Note that the file (peaks.cub) does not have to be
the same name for NUMERATOR and DENOMINATOR so long as the
spatial size (samples and lines) match between the given files.
Command Line
ratio
numerator=peaks.cub:5 denominator=peaks.cub:4 to=ratio.cub

Example 2Dividing multiple bands by one band Description
This example presents dividing all bands in a cube by an individual
band. In this case, the seven bands in peaks.cub are divided
by band 4 and the results output to ratio.cub.
Command Line
ratio
numerator=peaks.cub denominator=peaks.cub:4 to=ratio.cub
