For each direction pixel in an image (or a subset selected by region and/or box), this task estimates the continuum by fitting a polynomial to one or more subsets of the channels. The continuum estimate is saved in contfile, and subtracted from the image (or its subset) to make a spectral line estimate, which is saved in linefile.