NAME

div - divide image files

SYNOPSIS

div file1 [file2] [const=] [mul=] [min=] [max=] [outfile=]

DESCRIPTION

This routine computes the quotient of the data in file1.fits and (if specified) file2.fits. Optional constant in the denominator can be specified using the const= option. Optional constant in the numinator can be specified using the mul= option.

The full evaluation is

output = (mul*file1/(const*file2))
The data are written into file1.fits unless overridden by the outfile option. The arithmetic is done in a floating point buffer, but may be clipped when writing to 16 bit output file.

Values are optionally clipped to the range specified by the min= and max= options. When clipping occurs the number of pixels are printed to stdout as nclip=.

EXAMPLE

div alphalyr flat mul=10000
divides the image alphalyr.fits by the file dark.fits and multiplies the result by 10,000. The result overwrites alphalyr.fits
XVista index.