Jump to my Home Page Send me a message Check out stuff on GitHub Check out my photography on Instagram Check out my profile on LinkedIn Check me out on Facebook

CFITSIO Example Programs

Below are a couple simple CFITSIO programs illustrating the most basic use of the library. They should be useful for the CFITSIO beginner... The makefile is here.

The basics: Reading and Writing

Shows how to query HDU count, and dump the content of the first HDU.
Convert a FITS file to TGA (understands common color FITS formats)

Helper Code

fitsUtil.c fitsUtil.h
A little helper function to manage error handling.
© 2009 Mitch Richling