For the sake of this example, let us presume a detector which is 1024x1024 pixels.
DATASEC = '[1:1024,1:1024]' CCDSEC = '[1:1024,1:1024]' CCDSUM = '1 1' ORIGSEC = '[1:1024,1:1024]'
DATASEC = '[1:512,1:512]' CCDSEC = '[1:512,1:512]' CCDSUM = '2 2' ORIGSEC = '[1:512,1:512]'But if only the quarter of the CCD farthest from the amplifier were stored in the FITS image.
DATASEC = '[1:256,1:256]' CCDSEC = '[257:512,257:512]' CCDSUM = '2 2' ORIGSEC = '[1:512,1:512]'
DATASEC = '[1:511,1:511]' CCDSEC = '[1.5:511.5,1.5:511.5]' CCDSUM = '2 2' ORIGSEC = '[1:512,1:512]'I am not certain that any IRAF tasks know how to handle non-integral values of the array limits. I see no better way of communicating the readout window of the CCD.
Along any axis let the binning factor be b. Let the binned pixel number, as would be inserted in a CCDSEC card, be n. Let the total number of pixels along the axis be M. The binned pixel number n is permitted to take on any value which is an integral multiple of 1/b. Values of n from 1 to M (inclusive) indicate binned pixels which consist entirely of actual imaging pixels on the CCD. Values of n outside those bounds indicate binned pixels which contain some amount of prescan or overscan data. Values of n between 0 and 1 indicate that the bin begins before the edge of the imaging area of the CCD. Values of n between M and M+1 indicate that the bin ends beyond the edge of the imaging area of the CCD. When n is 0 or less or when n is M+1 or greater the binned pixel is entirely outside the imaging array.
The coordinates given below are in terms of the unbinned CCD pixels.
The minimal extent of pixel n is located at coordinate 0.5 + (n - 1) * b.
The middle of pixel n is located at coordinate 0.5 + (n - 0.5) * b.
The maximal extent of pixel n is located at coordinate 0.5 + n * b.