Input AAR:

The AAR FITS files for SWS and LWS are the final products of pipeline processing. ISAP defines a new named structure with simpler data names and read these file into it. This new AAR contains the following tags.
 type -  'LAAR' for LWS FITS

         'SAAR' for SWS FITS

         'YAAAR' for processed AAR (stands for "Yet Another AAR"


 header  - Array of strings of 80 chars 

 history - Array of strings of 32700 chars each

 data    - array of structures of data containing the possible data tags as follows. 
           {WAVE, WAVEU, FLUX, STDEV, TINT, DET, ITK, UTK, RPID, 
            SPARE, LINE, SDIR, SCNT, STATUS, FLAG}
 
The FITS primary and secondary headers are written into the header tag of AAR. In addition,
all HISTORY keywords found in FITS headers are saved in history tag.

The traslation of input FITS file parameters into ISAP AAR data tags
is given as follows:

           SAAR/LAAR     SWS        LWS 
           ---------   --------   --------
           WAVE        SWAAWAVE   LSANWAV
           WAVEU                  LSANWAVU
           FLUX        SWAAFLUX   LSANFLX
           STDEV       SWAASTDV   LSANFLXU
           TINT        SWAATINT   LSANTINT
           DET         SWAADETN   LSANDET
           ITK         SWAAITK    LSANITK
           UTK         SWAAUTK    LSANUTK
           RPID        SWAARPID   LSANRPID
           SPARE       SWAASPAR   LSANFILL
           LINE        SWAALINE   LSANLINE
           SDIR        SWAASDIR   LSANSDIR
           SCNT        SWAASCNT   LSANSCNT
           STATUS      SWAASTAT   LSANSTAT
           FLAG        SWAAFLAG   LSANFLAG

YAAAR:

Input to ISAP are the files as described above. However, sometime during processing information is lost on certain data tags. For example when you rebin/merge/average spectra from individual detectors into one final spectrum, you are loosing the information on individual detectors. Thus, ISAP processed AAR , known as YAAAR, can have 4 to 15 data tags. The minimum data tags expected are WAVE, FLUX, STDEV, and FLAG. 
Last update: 22 March 01