psFitsHeader.h

Go to the documentation of this file.
00001 /* @file  psFitsHeader.h
00002  * @brief Contains Fits header I/O routines
00003  *
00004  * @author Robert DeSonia, MHPCC
00005  *
00006  * @version $Revision: 1.10 $ $Name:  $
00007  * @date $Date: 2007/01/23 22:47:23 $
00008  *
00009  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00010  */
00011 
00012 #ifndef PS_FITSHEADER_H
00013 #define PS_FITSHEADER_H
00014 
00015 /// @addtogroup FileIO Input/Output
00016 /// @{
00017 
00018 #include "psFits.h"
00019 #include "psMetadata.h"
00020 
00021 /** Reads the header of the current HDU.
00022  *
00023  *  @return psMetadata*   the header data
00024  */
00025 psMetadata* psFitsReadHeader(
00026     psMetadata* out,
00027     ///< The psMetadata to add the header data.  If null, a new psMetadata is created.
00028     const psFits* fits                 ///< the psFits object
00029 );
00030 
00031 /** Reads the header of all HDUs.  The current HDU is not changed.
00032  *
00033  *  @return psMetadata*      the header data set as a number of metadata entries
00034  */
00035 psMetadata* psFitsReadHeaderSet(
00036     psMetadata* out,                         ///< output metadata or NULL if new psMetadata is to be created.
00037     const psFits* fits                       ///< the psFits object
00038 );
00039 
00040 /** Writes the values of the metadata to the current HDU header.
00041  *  Doesn't check if the header has to be created.
00042  *
00043  * @return bool         if TRUE, the write was successful, otherwise FALSE.
00044  */
00045 bool psFitsWriteHeader(
00046     psFits* fits,                       ///< the psFits object
00047     const psMetadata* output            ///< the psMetadata data in which to write
00048 );
00049 
00050 /** Writes a "blank" --- a header only, with no image or table.
00051  *
00052  *  @return bool        if TRUE, the write was successful, otherwise FALSE.
00053  */
00054 bool psFitsWriteBlank(
00055     psFits* fits,                       ///< the psFits object
00056     const psMetadata* output,           ///< the psMetadata data in which to write
00057     const char *extname
00058 );
00059 
00060 /** psFitsHeaderValidate validates the supplied header so that it is in
00061  *  compliance to the FITS standard for header keyword names and types.
00062  *
00063  *  @return bool        TRUE if the resulting header conforms to the FITS
00064  *                      standard, otherwise FALSE
00065  */
00066 bool psFitsHeaderValidate(psMetadata *header);
00067 
00068 /// @}
00069 #endif // #ifndef PS_FITS_H

Generated on Fri Feb 2 22:24:35 2007 for pslib by  doxygen 1.5.1