IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6515


Ignore:
Timestamp:
Mar 3, 2006, 4:40:14 PM (20 years ago)
Author:
Paul Price
Message:

Added psFitsReadImageCube, psFitsWriteImageCube, psFitsUpdateImageCube.
Modified psFitsWriteImage, psFitsReadImage to conform to SDRS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psLib/src/fits/psFitsImage.h

    r5511 r6515  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-11-14 22:18:30 $
     9 *  @version $Revision: 1.1.10.1 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-03-04 02:40:14 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3232 */
    3333psImage* psFitsReadImage(
    34     psImage* out,                      ///< a psImage to recycle.
    3534    const psFits* fits,                ///< the psFits object
    3635    psRegion region,                   ///< the region in the FITS image to read
     
    4645    psMetadata* header,                ///< header items for the new HDU.  Can be NULL.
    4746    const psImage* input,              ///< the image to output
    48     int depth                          ///< the number of z-planes of the FITS image data cube
     47    int depth,                         ///< the number of z-planes of the FITS image data cube
     48    const char *extname                ///< the extension name
    4949);
    5050
     
    5656    psFits* fits,                      ///< the psFits object
    5757    const psImage* input,              ///< the image to output
    58     psRegion region,                   ///< the region in the FITS image to write
     58    int x0,                            ///< the x offset on the FITS image to write
     59    int y0,                            ///< the y offset on the FITS image to write
    5960    int z                              ///< the z-planes of the FITS image data cube to write
     61);
     62
     63/** Reads an image cube into an array of images
     64 *
     65 * @return psArray*     Array of images, or NULL if an error.
     66 */
     67psArray *psFitsReadImageCube(
     68    const psFits *fits,                 ///< The FITS file pointer
     69    psRegion region                     ///< Region in the image to read
     70);
     71
     72/** Writes an image cube from an array of images
     73 *
     74 * @return bool          TRUE if the operation was successful; otherwise FALSE.
     75 */
     76bool psFitsWriteImageCube(
     77    psFits *fits,                       ///< The FITS file pointer
     78    psMetadata *header,                 ///< The FITS header, or NULL
     79    const psArray *input,               ///< The input array of images
     80    const char *extname                 ///< The extension name
     81);
     82
     83/** Updates an image cube from an array of images
     84 *
     85 * @return bool          TRUE if the operation was successful; otherwise FALSE.
     86 */
     87bool psFitsUpdateImageCube(
     88    psFits *fits,                       ///< The FITS file pointer
     89    const psArray *input,               ///< The input array of images
     90    int x0,                             ///< The x offset on the FITS image
     91    int y0                              ///< The y offset on the FITS image
    6092);
    6193
Note: See TracChangeset for help on using the changeset viewer.