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.

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.
To compile ConFlat2:
| gcc conflat2.c -I/path/to/FITSIO/headers/ -L/path/to/FITSIO/library/ -lcfitsio -lm -o conflat2 |
Once ConFlat2 has been compiled, it can be used via:
| ./conflat2 flatfield.fits n1_ot.031 flatfield_1_031.fits |