The estimate of the contamination of IOR and halation-ramp region fluxes by illumination from the spectral orders proceeds in two steps. Information from the PSF model and from the echelle order fluxes is not used in the first step, nor is a halation overlap region defined. The solution in this "Step 1" of Pass 1 is determined entirely from a Chebyshev interpolation from points in the end (non-IOR) regions of the swath. In the presence of certain image pathologies (Non-continuum Images), as well as the first and last few Pass 1 swaths, this Step 1 is the only step; it becomes the final solution for the Pass 1 phase.
For the great majority of Pass 1 swaths, i.e. those passing through the middle of the camera image and not encountering poor statistical solutions, BASISMOD continues with a Step 2. This step uses the solution from Step 1 as a starting point to compute a PSF-compensated solution in which we attempt to subtract from the measured interorder fluxes the contamination from adjacent orders. As can be inferred from Figure 3, the correction for this overlap can be determined by the simple relation:
where and Order Height are given in FN flux units per pixel and PSF and PSF are given as a fraction of the true local order height. Step 2 concludes by subtracting from the local measured background at each interorder location and refitting a new Chebyshev solution through the adjusted Pass 1 swath values.
BASISMOD uses the same trial spatial PSF model for all types of continuum source types in a given camera. The algorithm also assumes that the PSF is global over the image. The model was determined by replicating the accumulation of flux overlap toward short wavelength orders from a large number of actual images.
Because the PSF may actually change from image to image, the algorithm attempts to accommodate such changes by using on-the-fly order information to refine the PSF model - specifically the slope of the leg of the IOR triangle. This is accomplished by comparing the fractional flux overlap with the model result for a reference order within the IOR, that is by comparing the increase in overlap for this order to the overlap found at the start of the IOR (pixel nd). If the measured and model slopes agree within a tolerance factor (1.5x), the program adopts the measured slope and scales the model PSF accordingly. Otherwise, the model PSF is used. Tests show that various Pass 1 swaths for a given image can either pass or fail this tolerance test independently.