Software


CCD Commander

Complete automatic imaging now available.  Click here for details!



RGBFITSToTIFF.zip
RGBFITSToTIFF combines three 16-bit FITS files (red, green, and blue) into a 16-bit TIFF file for use in programs that do not support FITS files.

This program performs the following mathmatical operations to each FITS file before combining them.  These operations are all performed using double precision floating point variables.
First, the program will subtract from each pixel the value set in the CBLACK FITS parameter.  This value can be different for each FITS file.
Next a pedistal of 50 is added to help prevent negative values.
The program will then scale each color channel by a specified amount.  This is used if the FITS images are all the same exposure length and your filters are not evenly balanced.
Finally, the program truncates the pixel values to 16-bits (negative values are set to 0, values greater then 65535 are set to 65535) and writes the FITS file.

The program is a Windows command line program.  The command line is parsed as:

RGBFITStoTIFF <Red FITS file name> <Green FITS file name> <Blue FITS file name> <Red Scaling> <Green Scaling> <Blue Scaling> <TIFF Output file name>
Example usage is:
RGBFITStoTIFF red.fit green.fit blue.fit 1.3 1.0 1.63 RGB.tif
This software uses the CFITSIO library and the LIBTIFF library.  Information on these libraries can be found here:
http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html

http://www.libtiff.org/



DDP.zip
DDP performs a simple, non-sharpening DDP procedure on a FITS file.

The math performed in this program is (using double precision floating point variables):
OutputPixel = (InputPixel - BlackPoint) / (InputPixel + (WhitePoint - BlackPoint))

The range of OutputPixel values is then scaled to give interger values from 0 to 65535 (based on the minimum and maximum values returned from the above equation).

The program is a Windows command line program.  The command line is parsed as:

DDP <Input file name> <Output file name>
Example usage is:
DDP Lum.fit Lum_ddp.fit
This software uses the CFITSIO library routines.  Information can be found here:
http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html


Home