IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2008, 3:04:13 PM (19 years ago)
Author:
Paul Price
Message:

Moving all options on FITS I/O into an additional structure, psFitsOptions. The idea is that this can be carried around independently of the FITS structure, which is only created when opening a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080117/psLib/src/fits/psFits.h

    r16131 r16141  
    44 * @author Robert DeSonia, MHPCC
    55 *
    6  * @version $Revision: 1.35.2.2 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-01-18 03:37:50 $
     6 * @version $Revision: 1.35.2.3 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2008-01-19 01:04:13 $
    88 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    99 */
     
    4343} psFitsCompressionType;
    4444
    45 /// FITS scaling: how to set BSCALE and BZERO
     45/// FITS scaling method: how to set BSCALE and BZERO
    4646typedef enum {
    4747    PS_FITS_SCALE_NONE,                 ///< No auto-scaling to be applied (BSCALE = 1, BZERO = 0)
     
    5353} psFitsScaling;
    5454
    55 /** FITS file object.
    56  *
    57  *  This object should be considered opaque to the user; no item in this
    58  *  struct should be accessed directly.
    59  *
    60  */
     55/// Options for FITS I/O
    6156typedef struct {
    62     fitsfile* fd;                       ///< the CFITSIO fits files handle.
    63     bool writable;                      ///< Is the file writable?
    6457    char *extword;                      ///< user-specified word to name extensions (NULL implies EXTNAME)
    6558    struct {
     
    7265    psFitsScaling scaling;              ///< Scaling scheme to use when quantising floating-point values
    7366    bool fuzz;                          ///< Fuzz the values when quantising floating-point values?
    74     double bscale, bzero;               ///< Manually specified BSCALE and BZERO (SCALE_MANUAL)
     67    double bscale, bzero;               ///< Manually specified BSCALE and BZERO (for SCALE_MANUAL)
    7568    double mean, stdev;                 ///< Mean and standard deviation of image
    76     int stdevBits;                      ///< Number of bits to sample a standard deviation (SCALE_STDEV)
     69    int stdevBits;                      ///< Number of bits to sample a standard deviation (for SCALE_STDEV_*)
    7770    float stdevNum;                     ///< Number of standard deviations to pad off the edge
     71} psFitsOptions;
     72
     73
     74/// FITS file
     75typedef struct {
     76    fitsfile* fd;                       ///< the CFITSIO fits files handle.
     77    bool writable;                      ///< Is the file writable?
     78    psFitsOptions *options;             ///< Options for FITS I/O, or NULL
    7879} psFits;
     80
    7981
    8082/** FITS compression settings. */
     
    154156);
    155157
     158/// Allocator for options
     159psFitsOptions *psFitsOptionsAlloc(void);
     160
    156161/** Enables/configures FITS compression.
    157162 *
Note: See TracChangeset for help on using the changeset viewer.