IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2009, 2:33:51 PM (17 years ago)
Author:
Paul Price
Message:

Changing pmReadout.weight to variance. Adding pmReadout.covariance which will carry around a covariance pseudo-matrix, allowing us to calculate the pixel-to-pixel variance. pmReadout.covariance now exists and is set, but no mechanism yet to read/write, or use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/psModules/src/camera/pmHDU.h

    r19385 r21211  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-09-05 08:21:35 $
     6 * @version $Revision: 1.9.22.1 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2009-01-29 00:33:51 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    2020/// An instance of the FITS Header Data Unit
    2121///
    22 /// Of course, it is not an exact replica of a FITS HDU --- they have no mask and weight data, but these are
     22/// Of course, it is not an exact replica of a FITS HDU --- they have no mask and variance data, but these are
    2323/// stored here for convenience --- it keeps all the relevant data about the image in one place.
    2424typedef struct
     
    2929    psMetadata *header;                 ///< The FITS header, or NULL if primary for FITS; or section info
    3030    psArray *images;                    ///< The pixel data
    31     psArray *weights;                   ///< The pixel data
     31    psArray *variances;                   ///< The pixel data
    3232    psArray *masks;                     ///< The pixel data
    3333}
     
    6060                  );
    6161
    62 /// Read the HDU header and weight map
     62/// Read the HDU header and variance map
    6363///
    6464/// Moves to the appropriate extension
    65 bool pmHDUReadWeight(pmHDU *hdu,        ///< HDU to read
    66                      psFits *fits       ///< FITS file to read from
     65bool pmHDUReadVariance(pmHDU *hdu,        ///< HDU to read
     66                       psFits *fits       ///< FITS file to read from
    6767    );
    6868
     
    7979    );
    8080
    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
     81/// Write the HDU header and variance map
     82bool pmHDUWriteVariance(pmHDU *hdu,       ///< HDU to write
     83                        psFits *fits,     ///< FITS file to write to
     84                        const pmConfig *config  ///< Configuration
    8585    );
    8686
Note: See TracChangeset for help on using the changeset viewer.