A script to convert RAW images (Canon, Nikon etc.) to FITS images. It extracts only one color channel of the RAW image, and writes the necessary EXIF information to the FITS header. Either use gcc -o dcraw -O4 dcraw.c -lm -ljasper -ljpeg -llcms2 or gcc -o dcraw -O4 dcraw.c -lm -DNODEPS to compile it. You can then copy dcraw to your path (ex. /usr/local/bin). In order to copy to your path, you'll probably need root privileges.