IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 4:31:25 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmHDU.h

    r21279 r21363  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2009-02-04 02:39:36 $
     6 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2009-02-06 02:31:24 $
     8 *
    89 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    910 */
     
    1819/// @{
    1920
     21#define PM_HDU_COVARIANCE_KEYWORD "PS_COVAR" // FITS keyword to indicate presence of a covariance matrix
     22
    2023/// An instance of the FITS Header Data Unit
    2124///
    22 /// Of course, it is not an exact replica of a FITS HDU --- they have no mask and weight data, but these are
     25/// Of course, it is not an exact replica of a FITS HDU --- they have no mask and variance data, but these are
    2326/// stored here for convenience --- it keeps all the relevant data about the image in one place.
    24 typedef struct
    25 {
     27typedef struct {
    2628    psString extname;                   ///< The extension name
    2729    bool blankPHU;                      ///< Is this a blank FITS Primary Header Unit, i.e., no data?
    2830    psMetadata *format;                 ///< The camera format
    2931    psMetadata *header;                 ///< The FITS header, or NULL if primary for FITS; or section info
    30     psArray *images;                    ///< The pixel data
    31     psArray *weights;                   ///< The pixel data
    32     psArray *masks;                     ///< The pixel data
    33 }
    34 pmHDU;
     32    psArray *images;                    ///< Pixel data
     33    psArray *variances;                 ///< Variance in the pixel data, or NULL
     34    psArray *masks;                     ///< Mask for the pixel data, or NULL
     35} pmHDU;
    3536
    3637
     
    6061                  );
    6162
    62 /// Read the HDU header and weight map
     63/// Read the HDU header and variance map
    6364///
    6465/// Moves to the appropriate extension
    65 bool pmHDUReadWeight(pmHDU *hdu,        ///< HDU to read
    66                      psFits *fits       ///< FITS file to read from
     66bool pmHDUReadVariance(pmHDU *hdu,        ///< HDU to read
     67                       psFits *fits       ///< FITS file to read from
    6768    );
    6869
     
    7980    );
    8081
    81 /// Write the HDU header and weight map
    82 bool pmHDUWriteWeight(pmHDU *hdu,       ///< HDU to write
    83                       psFits *fits,     ///< FITS file to write to
    84                       const pmConfig *config  ///< Configuration
     82/// Write the HDU header and variance map
     83bool pmHDUWriteVariance(pmHDU *hdu,       ///< HDU to write
     84                        psFits *fits,     ///< FITS file to write to
     85                        const pmConfig *config  ///< Configuration
    8586    );
    8687
Note: See TracChangeset for help on using the changeset viewer.