There is one file in this section, the SWS Auto-Analysis Results file.
The AAR files, normally named swaa*.fits by the IDA, contain primary headers, very much the same as those of the SPD-files with some obvious exceptions and some more calibration files listed. See Section A.3.1. No example of an AAR-header is presented here.
The AAR file contains records with the fields described in Table A.10. In the FITS file they are defined in the binary header.
SWAALINE and SWAASCNT are both counts of the valid data present in an AAR. All valid data means data that are flagged as `Data', with the `SW', `LW' or `FP' runflags set but without being flagged simultaneously as `darkcurrent', `photometric check'. Additionally the data should have a valid order assigned.
SWAALINE is a count of the valid ranges in a dataset. For SWS01, it is filled with the band number (see Table 2.1). For an SWS02 observing X lines it will count from 1 to X, with 0 reserved for any datapoints not associated with a line. Note that the datapoints associated with SWAALINE set to, e.g. 1, may not correspond to the first entered line number in your AOT as the logic may re-arrange them to increase efficiency. For SWS06 it effectively counts the number of scans, including reference checks etc. For an example see Table A.11.
Operation | line number for detector band | |||
1 | 2 | 3 | 4 | |
REF | 1 | 2 | 3 | 4 |
SCAN UP | 5 | 6 | 7 | 8 |
REF | 9 | 10 | 11 | 12 |
SCAN DOWN | 13 | 14 | 15 | 16 |
REF | 17 | 18 | 19 | 20 |
. | . | . | . | . |
SWAASCNT has nothing to do with the number of scans required for an AOT. It is a count of the number of lines/bands containing requested (i.e. what was requested in the AOT) data, starting with 1. Any data outside the requested ranges will have SWAASCNT set to 0. Note that even if SWAASCNT is greater than 0, the flag and status word should be checked to ensure the data is okay. For SWS01 SWAASCNT is filled with 1.
The decision whether to increment SWAALINE or SWAASCNT depends on whether a scan starts and ends at the same grating position as the preceding scan. Initially both are set to one. If a scan starts and ends at the same grating position as the preceding scan the line counter is not incremented but the scan counter is. If the wavelength range is different the line counter is incremented and the scan counter is (re-)set to one. Users should note that this effectively results in a difference in the behaviour of SWAALINE for SWS02's and 6's. For SWS02 there is one value per each up-down pair, whereas for an SWS06 there is one value per individual up- or down-scan.