1.
| Read parameters
| This includes...
|
2.
| Read OBJECT file FITS header
| This is done in order to...
|
3.
| Read other files FITS headers
| This includes the BIAS, FLAT, STAR, and ARC...
|
4.
| Read and/or create the BIAS 1D image
| A processed copy is written out for later use.
|
5.
| Read and process FLAT image
| A processed copy is written out for later use.
|
6.
| Determine the slit length using FLAT image
| A processed copy is written out for later use.
|
7.
| Read and process STAR image
| ...
|
8.
| Fit order traces using STAR image
| ...
|
9.
| Find background limits for each order using FLAT image
| ...
|
10.
| Read OBJECT image
| ...
|
11.
| Rescale entire FLAT image by a single constant and divide OBJECT image by FLAT image
| ...
|
12.
| Find object profile and boundaries
| ...
|
13.
| Extract spectra
| ...
|
14.
| Write out spectra
| ...
|
15.
| Extract FLAT spectrum (go back to step 10.)
| ...
|
16.
| Extract ARC spectrum (go back to step 10.)
| ...
|
17.
| Wavelength calibration
| ...
|
18.
| Copy wavelength scale to object and apply skyline shift
| ...
|
18.
| Create special spectra and write out
| This includes DN-*.fits and s2n-*.fits.
|