#-----------------------------------------------------------------------------
#
# WCSLIB 4.8 - an implementation of the FITS WCS standard.
# Copyright (C) 1995-2011, Mark Calabretta
#
# This file is part of WCSLIB.
#
# WCSLIB is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# WCSLIB is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
# more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with WCSLIB.  If not, see <http://www.gnu.org/licenses/>.
#
# Correspondence concerning WCSLIB may be directed to:
#    Internet email: mcalabre@atnf.csiro.au
#    Postal address: Dr. Mark Calabretta
#                    Australia Telescope National Facility, CSIRO
#                    PO Box 76
#                    Epping NSW 1710
#                    AUSTRALIA
#
# Author: Mark Calabretta, Australia Telescope National Facility
# http://www.atnf.csiro.au/~mcalabre/index.html
# $Id: wcstab.keyrec,v 4.8.1.1 2011/08/15 08:07:06 cal103 Exp cal103 $
#-----------------------------------------------------------------------------
# List of FITS header keyrecords used by 'twcstab' to construct a FITS file
# for testing wcstab() and fits_read_wcstab().  The coordinate arrays and
# index vectors in the binary tables extensions are generated by twcstab
# itself.
#
# Lines in this file beginning with '#' are ignored by twcstab.
#-----------------------------------------------------------------------------
SIMPLE  =                    T / Standards-conformant FITS format
BITPIX  =                  -32 / IEEE single precision floating point
NAXIS   =                    4 / Four image axes
NAXIS1  =                  256 / Length of 1st image axis - fastest varying
NAXIS2  =                  128 / Length of 2nd image axis
NAXIS3  =                    4 / Length of 3rd image axis
NAXIS4  =                    1 / Length of 4th image axis - slowest varying
EXTEND  =                    T / Binary table extensions contain lookup tables.

COMMENT  -----------------------------------------------------------------------
COMMENT  Of the four -TAB coordinate axes, the first two celestial axes are
COMMENT  associated with a 2-D lookup table; the third spectral axis contains
COMMENT  a list of four wavelengths in the radio, infrared, optical, and x-ray
COMMENT  regimes; and the fourth time axis contains a list of observation
COMMENT  dates.  Axes 3 and 4 are adapted from Table 11 of WCS Paper III.
COMMENT
COMMENT  There are two separate bintables holding the -TAB arrays that differ
COMMENT  only in EXTVER.  The first holds the 2-D celestial table, and the
COMMENT  second holds the two 1-D spectral and time coordinate tables.
COMMENT  -----------------------------------------------------------------------

WCSAXES =                    4 / Four coordinate axes
WCSNAME = '-TAB test file'     / Name of this system

CRPIX1  =                129.0 / Pixel coordinate of reference point
CRPIX2  =                 65.0 / Pixel coordinate of reference point
PC1_1   =          0.996194698 / 5 deg rotation matrix element
PC1_2   =          0.087155743 / 5 deg rotation matrix element
PC2_1   =         -0.087155743 / 5 deg rotation matrix element
PC2_2   =          0.996194698 / 5 deg rotation matrix element
CDELT1  =                  1.0 / Index (psi_m) changes by one per pixel
CDELT2  =                  1.0 / Index (psi_m) changes by one per pixel
CRVAL1  =                136.0 / Table index (Psi_m) at the reference point
CRVAL2  =                 76.0 / Table index (Psi_m) at the reference point

CTYPE1  = 'RA---TAB'           / Right ascension in lookup table
CUNIT1  = 'deg'                / Right ascension units
CNAME1  = 'Right ascension (J2000)' / Axis name for labelling purposes
PS1_0   = 'WCS-TABLE'          / EXTNAME  of bintable extension for -TAB arrays
PV1_1   =                    1 / EXTVER   of bintable extension for -TAB arrays
PV1_2   =                    1 / EXTLEVEL of bintable extension for -TAB arrays
PS1_1   = 'CelCoords'          / Celestial coordinate array
PS1_2   = 'RAIndex'            / Right ascension index vector
PV1_3   =                    1 / Axis number in coordinate array

CTYPE2  = 'DEC--TAB'           / Declination in a slant zenithal projection
CUNIT2  = 'deg'                / Declination units
CNAME2  = 'Declination (J2000)' / Axis name for labelling purposes
PS2_0   = 'WCS-TABLE'          / EXTNAME  of bintable extension for -TAB arrays
PV2_1   =                    1 / EXTVER   of bintable extension for -TAB arrays
PV2_2   =                    1 / EXTLEVEL of bintable extension for -TAB arrays
PS2_1   = 'CelCoords'          / Celestial coordinate array
PS2_2   = 'DecIndex'           / Declination index vector
PV2_3   =                    2 / Axis number in coordinate array

RADESYS = 'FK5'                / Mean equatorial coordinates, IAU 1984 system
EQUINOX =               2000.0 / [yr] Equinox of equatorial coordinates

CRPIX3  =                  0.5 / Spectral bin initial edge of initial pixel
CRPIX4  =                  1.0 / Temporal bins are at begin/end time
PC3_3   =                  1.0 / Linear transformation matrix element
PC3_4   =                  0.0 / Linear transformation matrix element
PC4_3   =                  1.0 / Linear transformation matrix element
PC4_4   =                  1.0 / Linear transformation matrix element
CDELT3  =                  1.0 / Index (psi_m) changes by one per pixel
CDELT4  =                  1.0 / Index (psi_m) changes by one per pixel
CRVAL3  =                  0.5 / Table index (Psi_m) at the reference point
CRVAL4  =                  0.0 / Table index (Psi_m) at the reference point

CTYPE3  = 'WAVE-TAB'           / Wavelength axis by lookup table
CUNIT3  = 'm'                  / Wavelength in metres
CNAME3  = 'Wavelength'         / Axis name for labelling purposes
PS3_0   = 'WCS-TABLE'          / EXTNAME  of bintable extension for -TAB arrays
PV3_1   =                    2 / EXTVER   of bintable extension for -TAB arrays
PV3_2   =                    1 / EXTLEVEL of bintable extension for -TAB arrays
PS3_1   = 'WaveCoord'          / Wavelength coordinate array
PS3_2   = 'WaveIndex'          / Wavelength index vector
PV3_3   =                    1 / Axis number in coordinate array

CTYPE4  = 'TIME-TAB'           / Time axis by lookup table
CUNIT4  = 'a'                  / Time in years
CNAME4  = 'Observation date'   / Axis name for labelling purposes
PS4_0   = 'WCS-TABLE'          / EXTNAME  of bintable extension for -TAB arrays
PV4_1   =                    2 / EXTVER   of bintable extension for -TAB arrays
PV4_2   =                    1 / EXTLEVEL of bintable extension for -TAB arrays
PS4_1   = 'TimeCoord'          / Time coordinate array
PS4_2   = 'TimeIndex'          / Time index vector
PV4_3   =                    1 / Axis number in coordinate array

END
