27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1 <strong>CCfits</strong> Documentation 1<br />

24.39<strong>CCfits</strong>::PHDU Class Reference . . . . . . . . . . . . . . . . . . . . . 126<br />

24.39.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 128<br />

24.39.2 Constructor & Destructor Documentation . . . . . . . . . . . 129<br />

24.39.3 Member Function Documentation . . . . . . . . . . . . . . . 129<br />

24.40<strong>CCfits</strong>::Table Class Reference . . . . . . . . . . . . . . . . . . . . . 133<br />

24.40.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 134<br />

24.40.2 Constructor & Destructor Documentation . . . . . . . . . . . 135<br />

24.40.3 Member Function Documentation . . . . . . . . . . . . . . . 135<br />

24.41<strong>CCfits</strong>::Table::NoSuchColumn Class Reference . . . . . . . . . . . . 138<br />

24.41.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 139<br />

24.41.2 Constructor & Destructor Documentation . . . . . . . . . . . 139<br />

1 <strong>CCfits</strong> Documentation<br />

<strong>CCfits</strong> requires CFITSIO<br />

1.1 Introduction<br />

<strong>CCfits</strong> is an object oriented interface to the cfitsio library. cfitsio is a widely used<br />

library for manipulating FITS (Flexible Image Transport System) formatted files. -<br />

This following documentation assumes prior knowledge of the FITS format and some<br />

knowledge of the use of the cfitsio library, which is in wide use, well developed, and<br />

available on many platforms.<br />

Readers unfamiliar with FITS but in need of performing I/O with FITS data sets are directed<br />

to the first cfitsio manual, available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html<br />

Information about the FITS file format and the current standard is available from<br />

http://fits.gsfc.nasa.gov<br />

The <strong>CCfits</strong> library provides an interface that allows the user to manipulate FITS format<br />

data through the high-level building blocks of FITS files and Header-Data Units (HD-<br />

Us). The implementation is designed to hide the details of performing FITS I/O from<br />

the user, who will write calls that manipulate FITS objects by passing filenames and<br />

lists of strings that represent HDUs, keywords, image data and data columns. Unlike<br />

cfitsio, which typically requires several calls to access data (e.g. open file, move to<br />

correct header, determine column containing table data, read data) <strong>CCfits</strong> is designed<br />

to make reading data atomic. For example, it exploits internally existing optimization<br />

techniques for FITS I/O, choosing the optimal reading strategy as available [see the<br />

cfitsio manual, Chapter 13] when data are read on initialization. Data written by <strong>CCfits</strong><br />

will also be compliant with the FITS standard by specification of class constructors<br />

representing FITS dataset elements.<br />

<strong>CCfits</strong> necessarily works in a fundamentally different way than cfitsio. The general<br />

pattern of usage for <strong>CCfits</strong> is: create a FITS object, which either opens a disk file or<br />

creates a new disk file, create references to existing or new HDU objects within it, and<br />

Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!