Latest Revision 3.1.0.80
-Dark Optimization would cause CaLIGHTs to run out of memory if the image was too small. This bug has be eliminated.
-Finally got the math working correctly for the Calibrate Preview screen. Lots of research into color balance, sRGB color space, gamma and asinh stretching. The Calibrate Preview uses a fixed color balance of Red=2.0, Green=1.0 and Blue=1.5. Hopefully this screen will be easier to use now.
-I have noticed that a few DSLRs don’t implement the equivalent of BlackADU and some DSLRs(Canon EOS 1000D) reports the wrong BlackADU. CaLIGHTs did use BlackADU in an attempt to optimize the available resolution for the calibrated FITs files that it creates. The dedicated astrocam manufacturers don’t use the concept of BlackADU so I decided to abandon the concept of BlackADU. CaLIGHTs will still display a BlackADU value if one is defined but it will not be used to calibrate your LIGHT frames. The main issue will be some clipping of the brighter pixels that have been brightened because of FLAT frame compensation. It all depends on how significant the vignetting of the LIGHT frame is and whether there are bright stars in these areas.
-Modified all of the buttons so they have the same look and feel.
-Changed how CaLIGHTs creates FITS files. The FITS file format was invented in the late 1970’s. It has many requirements that were specific to the computer equipment in use in those days. Magnetic tape and computer languages like FORTRAN were popular then. This creates some quirks that don’t make sense today but are still required…some of which caught me by surprise. Many of today’s astronomy programs no longer care about these quirks but Deep Sky Stacker, which uses the CFITSIO library does care and DSS V4.2.5 was not liking CaLIGHTs FITS files. To bring CaLIGHTs in line with this standard the following changes were made…
a)The file size is now padded with zeros so that the size is a multiple of 2880. I believe this was a magnetic tape requirement.
b)Keywords like SIMPLE, BITPIX, NAXIS, NAXIS1, NAXIS2, EXTEND, BZERO, and BSCALE were reformatted. All this means is that these keyword were formatted by CaLIGHTs as…
SIMPLE = T / file does conform to FITS standard
BITPIX = 16 / number of bits per data pixel
NAXIS = 2 / number of data axes
NAXIS1 = 4164 / Width of Image
NAXIS2 = 2794 / Height of image
EXTEND = T / FITS dataset may contain extensions
BZERO = 32768 / offset data range to that of unsigned short
BSCALE = 1 / default scaling factor
And now they are formatted as per the FITS standard V4 as..
SIMPLE = T / file does conform to FITS standard
BITPIX = 16 / number of bits per data pixel
NAXIS = 2 / number of data axes
NAXIS1 = 4164 / Width of Image
NAXIS2 = 2794 / Height of image
EXTEND = T / FITS dataset may contain extensions
BZERO = 32768 / offset data range to that of unsigned short
BSCALE = 1 / default scaling factor
c)CaLIGHTs would either add or modify keywords such as ISOSPEED, EXPTIME, CCD-TEMP, INSTRUME, DATE-OBS. Now CaLIGHTs doesn’t modify or add them if the original LIGHT frame was a FITS file. If the original LIGHT frame was a DSLR RAW file or a TIFF, CaLIGHTs does add them because CaLIGHTs needs to create a FITS file so some sort of header needs to be created. The ISOSPEED keyword is recognized by Deep Sky Stacker which causes DSS to display the ISO.
-A new strategy has been adopted by CaLIGHTs for the special case where the original LIGHT frame is a COLOR image and the user has chosen to perform 2 x 2 or 4 x 4 MONO binning. For this specific case, if the MOSAIC, COLORTYP or BAYERPAT keywords are used in the LIGHT frame then these keywords will be removed when CaLIGHTs creates the MONO, or luminance, calibrated FITS file.