XVista manual page

NAME

sub - to subtract image files

SYNOPSIS

sub file1 [file2] [const=] [outfile=] [inverse]

DESCRIPTION

This routine computes the difference of the data in file1 and (if specified) file2. A constant offset can be specified optionally. The computed difference is stored in file1.

The number of rows and columns in file1 must be equal to those in file2.

The subtracted image is put in file1 unless overridden by the outfile option.

The inverse causes file1 to be subtracted from file2 but the result be stored in file1.

EXAMPLE

sub alphalyr dark -subtracts the dark frame 'dark.fts' from the file `alphalyr.fts'.

sub alphalyr const=45 - Subtracts 45 from each pixel in file `alphalyr.fts'.

SEE ALSO

add, mul, div,