IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 17, 2005, 5:15:04 PM (22 years ago)
Author:
desonia
Message:

Added tests for psFitsReadImage & psFitsWriteImage. Also re-enabled
some 'not a requirement' code to support a superset of the required
datatype for various functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.h

    r2962 r3028  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-01-12 22:17:01 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-01-18 03:15:03 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    172172bool psFitsWriteImage(
    173173    psFits* fits,                      ///< the psFits object
    174     const psMetadata* header,
     174    const psMetadata* header,          ///< header items for the new HDU.  Can be NULL.
    175175    const psImage* input,              ///< the image to output
    176     int depth                          ///< the number of z-planes of the FITS image data cube
     176    int depth,                         ///< the number of z-planes of the FITS image data cube
     177    char* extname                      ///< extension name
     178);
     179
     180/** Updates the FITS file image, given the desired region and z-plane.
     181 *
     182 *  @return bool        TRUE is the write was successful, otherwise FALSE.
     183 */
     184bool psFitsUpdateImage(
     185    psFits* fits,                      ///< the psFits object
     186    const psImage* input,              ///< the image to output
     187    psRegion region,                   ///< the region in the FITS image to write
     188    int z                              ///< the z-planes of the FITS image data cube to write
    177189);
    178190
     
    231243bool psFitsWriteTable(
    232244    psFits* fits,                      ///< the psFits object
    233     psMetadata* header,
     245    psMetadata* header,                ///< header items for the new HDU.  Can be NULL.
    234246    psArray* table,
    235247    ///< Array of psMetadata items, which contains the output data items of each row.
    236     char* extname
     248    char* extname                      ///< extension name
     249);
     250
     251/** Updates a FITS table.  The current HDU type must be either
     252 *  PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
     253 *
     254 *  @return bool        TRUE if the write was successful, otherwise FALSE
     255 *
     256 *  @see psFitsWriteTable
     257 */
     258bool psFitsUpdateTable(
     259    psFits* fits,                      ///< the psFits object
     260    psArray* table
     261    ///< Array of psMetadata items, which contains the output data items of each row.
    237262);
    238263
Note: See TracChangeset for help on using the changeset viewer.