NAME

rawmedadd - sum ACIS RAW frames with median cleanup

SYNOPSIS

rawmedadd options directory

DESCRIPTION

rawmedadd adds ACIS data in RAW data mode. It can perform median cleaning, adding the median images.

It operates on an entire directory of images considering files with the suffix of _img0.fits* to be images. It uses the _win0.fits* file to determine the size of the data window.

If the --nmed option is non-zero, rawmedadd will group the images into groups of size nmed, create a single median image from each group, then add the median images.

ARGUMENTS AND OPTIONS

rawmedadd uses long options. Options may be abbreviated, and the "=" character shown below in the option templates is optional.

The directory in which the ACIS data is to be found should be the last argument on the command line. If not specified, the current directory is used.

The following options are recognized:

--autonmed

If true, the number of images in a median group will be automatically determined, using the value of --nmed as a starting point. It defaults to 0.

--cube=cube.fits

If specified, a three dimensional FITS image cube will be written to the named file, containing the stack of median images (or of all images if the nmed argument is 0.

--nmed=integer

The number of images in a median group. Defaults to 5. If 0, the images are added directly. If -1, the median of all of the images is used.

--outfile=filename

The output FITS image name. A suffix of .fits will be automatically supplied. This defaults to sum.fits.

COPYRIGHT & LICENSE

Copyright 2008 Smithsonian Astrophysical Observatory

This software is released under the GNU General Public License. You may find a copy at

                 http://www.fsf.org/copyleft/gpl.html

AUTHOR

Diab Jerius <djerius@cfa.harvard.edu>