NAME

bin - compress (bin) image files

SYNOPSIS

bin file bin= [mean] [outfile=] [bitpix=] [debug]

DESCRIPTION

This program shrinks the data file named on the command line by the binning factor specified. The binning is done both in rows and columns and the data are summed. If the mean flag is specified, the pixel sum is divided by the number of pixels (the square of the binning factor).

The sum is computed as floating point to keep significance, however, may be clipped due to the nature of FITS file. The binned data over-writes the input file unless overriden by the outfile option.

The bitpix can be changed if desired.

EXAMPLE

bin alflyr bin=4 mean

Compresses the data file alflyr by a factor of 4 (or 16 in total file size). The pixels are normalized.

BUGS

The FITS header parameters BSCALE, CDELT1 and CDELT2, if they exist, are not changed.
XVista index