ConFlat2

 Overview

ConFlat2 is an update to the ConFlat software that is used on OPTIC to convolve the flat-field images with the shifts used for each of the science exposures. Unlike the original version of ConFlat, this version operates on the multi-extension FITS files created by mkmsc.

ConFlat2

 Download

The C source code for ConFlat2 can be found here.
Note: This version relies on the C FITSIO library to handle the input and output images. ConFlat2 has been tested with version 3.090 of the FITSIO library.

 Documentation

To compile ConFlat2:

  gcc conflat2.c -I/path/to/FITSIO/headers/ -L/path/to/FITSIO/library/ -lcfitsio -lm -o conflat2
where /path/to/FITSIO/headers/ is the path to the directory containing fitsio.h and /path/to/FITSIO/library/ is the path to the directory containing libcfitsio.a.

Once ConFlat2 has been compiled, it can be used via:

  ./conflat2 flatfield.fits n1_ot.031 flatfield_1_031.fits
where flatfield.fits is the name of an multi-extension, overscan corrected, trimmed, bias subtracted, combined flat field image, n1_ot.031 is an OT shifts file, and flatfield_1_031.fits is the output flat field that has been convolved with the OT shifts.

Address: Department of Astronomy - SW 319 - 727 East 3rd Street - Bloomington, IN 47405