[Top] [Prev] [Next] [Bottom]
20.2 STIS File Structures
All STIS data products are FITS files. Images and two-dimensional spectroscopic data are stored in FITS image extension files, which can be directly manipulated, without conversion, in the IRAF/STSDAS environment. These FITS image extension files allow an associated set of STIS science exposures, processed through calibration as a single unit, to be packaged into a single file. Accessing the images in the FITS image extension files in IRAF follows a simple convention explained in detail in Chapter 2. The catfits task can be used to display the complete contents of the primary and extension headers of the data file. Section "Types of STIS Files" on page 20-6 describes the contents of these files and how to access them.
Tabular STIS information, such as extracted one-dimensional spectra or the TIMETAG mode event series are stored as three-dimensional FITS binary tables. The tables can be accessed directly in the IRAF/STSDAS environment using tasks in the tables.ttools package as described in Chapters 2 and 3.
20.2.1 STIS FITS Image Extension Files
Figure 20.1 illustrates the structure of a STIS FITS image extension file, which contains:
- A primary header that stores keyword information describing the global properties of all of the exposures in the file (e.g., the target name, target coordinates, total summed exposure time of all exposures in the file, optical element, aperture, detector, etc.).
- A series of image extensions, each containing a header with specific exposure-level keyword information only (e.g., exposure time, world coordinate system, etc.) and a data array.
Storage of STIS ACCUM Mode Science Data: Raw and Calibrated Two-Dimensional Spectroscopic and Imaging Data
All ACCUM mode uncalibrated science data from STIS and all calibrated STIS data, with the exception of the extracted one-dimensional spectra (see below) are stored in FITS image extension files with the particular format shown in Figure 20.1.
A triplet of FITS image extensions corresponds to each exposure in a STIS data file:
Two-Dimensional Extracted Spectra
The rootname_sx2.fits, rootname_x2d.fits files which hold the flux and wavelength-calibrated two-dimensional spectra for long-slit first-order observations are stored as FITS image, as are the raw data and the calibrated imaging data. The units of the data in the extracted two dimensional spectra are ergs sec-1 cm-2 A-1 arcsec-2 pixel-1. "Working with Two Dimensional Extracted Spectra" on page 23-3 describes how to work with these data to derive flux information and wavelengths.
Imaging Data
The final calibrated output product for CCD imaging data is the rootname_crj.fits file, and the final calibrated product for MAMA data is either the rootname_flt.fits or rootname_sfl.fits files. The units of the data in these files is in counts per pixel, just as in WFPC2 data, and in general these data can be manipulated just like WFPC2 data. See "Converting Counts to Flux or Magnitude" on page 3-15.
Storage of Acquisition and Acquisition/Peakup Images
Almost all STIS spectroscopic science exposures will have been preceded by an acquisition and possibly an acquisition/peakup exposure to place the target in the slit. Keywords in the header of spectroscopic data identify the dataset name of the acquisition (in the ACQNAME keyword) and ACQ/PEAK images (in the PEAKNAM1 and PEAKNAM2 keywords).
An acquisition exposure produces a raw data file (rootname_raw.fits) containing three science image extensions corresponding to the three stages of the acquisition procedure:
- [SCI,1] is a subarray image (100 x 100 for point source acquisitions; larger for diffuse acquisitions) of the sky obtained after the initial blind pointing.
- [SCI,2] is an image of the same subarray after the coarse locate phase of the acquisition.
- [SCI,3] is an image of the 32 x 32 subarray taken during the slit-illumination phase of the target acquisition.
An acquisition/peakup exposure will produce a single raw data file for a spiral search and one for each linear one-dimensional search (that is, if you have performed a peakup which requires LINEAR-AXIS1 and LINEAR-AXIS2 scans, then two data sets will be produced-one for each scan). The rootname_raw data file produced for an acq/peak exposure contains one science image extension:
- [SCI,1] is the confirmation image, taken at the end of the peakup, after the final move which places the target in the slit.
- To examine the flux values of the individual steps in the ACQ/PEAK, list the pixels (using the listpix task) of the fourth extension, i.e., rootname_raw.fits[4].
20.2.2 Tabular Storage of STIS Data
Time-Tag
Time-tag event data is contained in a binary table extension in which each row of the table corresponds to a single event in the data stream and the columns of the table contain scalar quantities that describe the event, as shown in Table 20.1.
The STIS pipeline collapses a time-tag event series into a single time-integrated image and processes it as if it were an ACCUM mode image. Outside of the pipeline the raw time-tag event stream can be manipulated to produce two-dimensional images which are integrated over user-specified times or manipulated directly (see "TIME-TAG Data" on page 23-6).
One-Dimensional Extracted Spectra
In the STIS pipeline, two-dimensional STIS echelle spectra are aperture extracted, order by order, and each extracted spectral order from a single spectral image is stored in a single table, one order per row. Each column of the table contains a particular type of quantity, such as wavelengths or fluxes. Table 20.2 shows the contents of the different columns in a STIS extracted spectrum table. Each table cell, corresponding to a particular spectral order and type of quantity, can contain either a scalar value or an array of values. For example, each cell in the WAVELENGTH column contains a one-dimensional array of wavelengths corresponding to a spectral order given by the scalar in the SPORDER column on the same row.
There will a separate table extension for each associated exposure in an associated set. For example, if you specified NEXP=3 on your proposal logsheet, you will find the extracted spectrum from the second exposure in the second table extension.
[Top] [Prev] [Next] [Bottom]
stevens@stsci.edu
Copyright © 1997, Association of Universities for Research in Astronomy. All rights
reserved.
Last updated: 07/01/98 10:18:16