Sample images for all of the projections may be obtained here.
CTYPE1 and CTYPE2 indicate the coordinate type and projection. The first four characters are RA-- and DEC-, GLON and GLAT, or ELON and ELAT, for equatorial, galactic, and ecliptic coordinates, respectively. The second four characters contain a four-character code for the projection. The presence of the CTYPE1 keyword is used to select for this WCS subset. If a CTYPEn value of LINEAR is used, units are read from the CUNITn keywords and returned by programs which return world coordinates as strings. A flag in the data structure may be set to select the AIPS subroutines.
CRPIX1 and CRPIX2 are the pixel coordinates of the reference point to which the projection and the rotation refer.
CRVAL1 and CRVAL2 give the center coordinate as right ascension and declination or longitude and latitude in decimal degrees.
There are three options for the scale and rotation:
The FITS WCS standard uses a rotation matrix, CD1_1, CD1_2, CD2_1, and CD2_2 to indicate both rotation and scale, allowing a more intuitive computation if the axes are skewed. This model has been used by HST and IRAF for several years.
The 1996 proposed FITS WCS standard used PC001001, PC001002, PC002001, and PC002002 to represent the rotation matrix but retained CDELT1 and CDELT2 for the scale. It is also read by this software, but should not be used for new WCS's.
Refer to I: "Representations of world coordinates in FITS", Greisen, E.W. & Calabretta, M.R. (2002), Astronomy & Astrophysics, 375, 1061-1075 and II: "Representations of celestial coordinates in FITS", Calabretta. M.R., & Greisen, E.W., (2002), Astronomy & Astrophysics, 375, 1077-1122
An image may have multiple WCS transformations in its header, and they may be dependent on each other if they follow the convention developed by Doug Mink and Steve Allen in a memo, "The WCSDEP Convention", available in PDF or Postscript format.
There is currently no standard for a plate scale keyword. libwcs uses the SECPIX or PIXSCALE keyword to set CDELT1 and CDELT2, or sets CDELT1 and CDELT2 separately using SECPIX1 and SECPIX2 or PIXSCAL1 and PIXSCAL2 by converting from arcseconds per pixel to degrees per pixel. The PLTSCALE keyword is sometimes present instead of SECPIX, but it is currently unimplemented in libwcs because it has been used as both arseconds per pixel and degrees per pixel. Because a CCD image can be closely approximated by a plane tangent projection, CTYPE1 is set to RA---TAN and CTYPE2 to DEC--TAN. The NRAO or WCSLIB subroutines can then be used for pixel to sky and sky to pixel coordinate conversion.
Some information about the coordinate system is often omitted from file headers. An attempt has been made to adopt reasonable default values when something is missing or set strangely. The EPOCH keyword is expected to mean the equinox of the coordinates in the FITS tradition.
In header: In wcs structure: EPOCH EQUINOX RADECSYS epoch equinox radecsys 1950 none none date-obs 1950 FK4 2000 none none date-obs 2000 FK5 date<1980 none none date-obs date FK4 date>1980 none none date-obs date FK5 none none none date-obs 2000 FK5 none 1950 none date-obs 1950 FK4 none 2000 none date-obs 2000 FK5 0 none none date-obs 1950 FK4 0 1950 none date-obs 1950 FK4 0 2000 none date-obs 2000 FK5