FITSIO Home
Next:
Contents
 
Contents
The FITSIO Cookbook
How to Read and Write FITS Format Files
Version 1.1
William D. Pence
HEASARC
Code 668
Goddard Space Flight Center
Greenbelt, MD 20771
USA
April 1995
Contents
1. Introduction to FITSIO
1.1 What is FITSIO?
1.2 Sources of information on FITSIO and FITS
1.3 A FITS Primer
1.4 Basic Conventions used in FITSIO
1.4.1 Current Header Data Unit (CHDU)
1.4.2 Subroutine Names
1.4.3 Subroutine Families
1.4.4 Implicit Data Type Conversion
1.4.5 Data Scaling
1.4.6 Error Status Values and the Error Message Stack
2. Example FITSIO Programs
2.1 WRITEIMAGE - write a FITS 2-D image
2.2 WRITEASCII - write a FITS ASCII table
2.3 WRITEBINTABLE - write a FITS binary table
2.4 COPYHDU - copy HDUs to a new file
2.5 SELECTROWS - copy rows from one table to another
2.6 READHEADER - read and print header keywords
2.7 READIMAGE - read the pixel values in a FITS image
2.8 READTABLE - read data from a FITS table
3. Utility Subroutines
3.1 PRINTERROR - print FITSIO error messages
3.2 DELETEFILE - delete a FITS file
About this document ...