IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2007, 11:35:35 AM (19 years ago)
Author:
jhoblitt
Message:

add psFitsSetCompression()

File:
1 edited

Legend:

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

    r12554 r14868  
    44 * @author Robert DeSonia, MHPCC
    55 *
    6  * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-03-23 00:34:40 $
     6 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-09-17 21:35:35 $
    88 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    99 */
     
    3434    PS_FITS_TYPE_ANY = ANY_HDU         ///< Any HDU type
    3535} psFitsType;
     36
     37typedef enum {
     38    PS_FITS_COMPRESS_NONE = 0,
     39    PS_FITS_COMPRESS_GZIP,
     40    PS_FITS_COMPRESS_RICE,
     41    PS_FITS_COMPRESS_HCOMPRESS,
     42    PS_FITS_COMPRESS_PLIO
     43} psFitsCompressionType;
    3644
    3745/** FITS file object.
     
    7381);
    7482
     83/** Enables/configures FITS compression.
     84 *
     85 * Note that HCOMPRESS compression is not presently supported.
     86 *
     87 *  @return bool      TRUE if successfully configured, otherwise FALSE
     88 */
     89bool psFitsSetCompression(
     90    psFits* fits,                       ///< psFits object to close
     91    psFitsCompressionType type,         ///< type of compression
     92    int ndim,                           ///< number of dim in tile size array
     93    long *tilesize,                     ///< pointer to an array defining compression tile size
     94    int noisebits,                      ///< noise bits
     95    int scale,                          ///< hcompress scale
     96    int smooth                          ///< hcompress smothing
     97);
     98
    7599/** Checks the type of a particular pointer.
    76100 *
Note: See TracChangeset for help on using the changeset viewer.