When delivering non-extracted, 1-D or N-D spectra, the FITS files must contain a valid WCS to describe the data axes, scales and units. There is no single, absolute standard for the representation of spectral coordinates in FITS since there are many flavors of FITS spectra and no one set of keywords can cover all the bases as with WCS for imaging data. The standard is evolving; therefore we can only make recommendations as to how best to follow it. Additionally the large variety of spectral reduction software packages expect different keywords as input and produce their own sets of keywords as output. We recommend the following WCS resources for reference in building your spectra header keywords. Additional sections below provide simple examples and key excerpts from this list of WCS resources which can be used as guidelines for spectral headers.
The following example of a non-linear one dimensional spectrum, is taken from the NOAO IRAF 'Spectral WCS Conventions' web page.
In this example a one dimensional, 1000 point, spectrum with a non-linear (quadratic) dispersion is described by a three dimensional WCS.
NAXIS = 1 / Number of image raster axes NAXIS1 = 1000 / Number of pixels CTYPE1 = 'WAVE-WAV-PLY' / Wavelength axis CUNIT1 = 'Angstrom' / Wavelength units CRVAL1 = 5560. / Wavelength (Angstrom) CRPIX1 = 500. / Reference pixel CD1_1 = 2.1 / Linear dispersion (Angstrom/pixel) DV1_0 = 2 / Order of non-linear function DV1_2 = 499. / Normalization DV1_6 = 5. / Maximum quadratic deviation CTYPE2 = 'RA---TAN' / RA axis CRVAL2 = 201.94541667302 / RA reference (deg) CD2_2 = -2.1277777E-4 / RA axis scale (deg/pixel) CRPIX2 = 1. / Reference pixel CTYPE3 = 'DEC--TAN' / DEC axis CRVAL3 = 47.45444 / DEC reference (deg) CD3_3 = 2.1277777E-4 / DEC axis scale (deg/pixel) CRPIX3 = 1. / Reference pixel
credit: http://iraf.noao.edu/projects/fitswcs/spec3d.html
The following tables are screen shots from the paper 'Representations of spectral coordinates in FITS' (Greisen et al. 2006). These have been copied here for quick reference:
We suggest following the guidelines in the paper 'The VO-Compataple Spectra Container for HST and other Missions' (Thompson et al. 2006). This will allow MAST to more easily integrate your spectral data into the Virtual Observatory (VO) search standards. An example of a VO spectral container group of header keywords can be viewed below. Note that units are given after the FITS comment separator "/" within brakets "[]".