Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psFitsImage.h

Go to the documentation of this file.
00001 /** @file  psFitsImage.h
00002  *
00003  *  @brief Contains Fits I/O routines
00004  *
00005  *  @ingroup FileIO
00006  *
00007  *  @author Robert DeSonia, MHPCC
00008  *
00009  *  @version $Revision: 1.1 $ $Name: rel9_0 $
00010  *  @date $Date: 2005/11/14 22:18:30 $
00011  *
00012  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00013  */
00014 
00015 #ifndef PS_FITSIMAGE_H
00016 #define PS_FITSIMAGE_H
00017 
00018 #include "psFits.h"
00019 
00020 #include "psType.h"
00021 #include "psArray.h"
00022 #include "psVector.h"
00023 #include "psMetadata.h"
00024 #include "psImage.h"
00025 
00026 /// @addtogroup FileIO
00027 /// @{
00028 
00029 /** Reads an image, given the desired region and z-plane.
00030  *
00031  *  @return psImage*     the read image or NULL if there was an error.
00032  */
00033 psImage* psFitsReadImage(
00034     psImage* out,                      ///< a psImage to recycle.
00035     const psFits* fits,                ///< the psFits object
00036     psRegion region,                   ///< the region in the FITS image to read
00037     int z                              ///< the z-plane in the FITS image cube to read
00038 );
00039 
00040 /** Writes an image, given the desired region and z-plane.
00041  *
00042  *  @return bool        TRUE is the write was successful, otherwise FALSE.
00043  */
00044 bool psFitsWriteImage(
00045     psFits* fits,                      ///< the psFits object
00046     psMetadata* header,                ///< header items for the new HDU.  Can be NULL.
00047     const psImage* input,              ///< the image to output
00048     int depth                          ///< the number of z-planes of the FITS image data cube
00049 );
00050 
00051 /** Updates the FITS file image, given the desired region and z-plane.
00052  *
00053  *  @return bool        TRUE is the write was successful, otherwise FALSE.
00054  */
00055 bool psFitsUpdateImage(
00056     psFits* fits,                      ///< the psFits object
00057     const psImage* input,              ///< the image to output
00058     psRegion region,                   ///< the region in the FITS image to write
00059     int z                              ///< the z-planes of the FITS image data cube to write
00060 );
00061 
00062 /// @}
00063 
00064 #endif // #ifndef PS_FITS_H

Generated on Tue Dec 6 17:18:42 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2