Changeset 21363 for trunk/psModules/src/camera/pmHDU.h
- Timestamp:
- Feb 5, 2009, 4:31:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDU.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDU.h
r21279 r21363 4 4 * @author Paul Price, IfA 5 5 * 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 * 8 9 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 9 10 */ … … 18 19 /// @{ 19 20 21 #define PM_HDU_COVARIANCE_KEYWORD "PS_COVAR" // FITS keyword to indicate presence of a covariance matrix 22 20 23 /// An instance of the FITS Header Data Unit 21 24 /// 22 /// Of course, it is not an exact replica of a FITS HDU --- they have no mask and weightdata, but these are25 /// Of course, it is not an exact replica of a FITS HDU --- they have no mask and variance data, but these are 23 26 /// stored here for convenience --- it keeps all the relevant data about the image in one place. 24 typedef struct 25 { 27 typedef struct { 26 28 psString extname; ///< The extension name 27 29 bool blankPHU; ///< Is this a blank FITS Primary Header Unit, i.e., no data? 28 30 psMetadata *format; ///< The camera format 29 31 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; 35 36 36 37 … … 60 61 ); 61 62 62 /// Read the HDU header and weightmap63 /// Read the HDU header and variance map 63 64 /// 64 65 /// Moves to the appropriate extension 65 bool pmHDURead Weight(pmHDU *hdu, ///< HDU to read66 psFits *fits ///< FITS file to read from66 bool pmHDUReadVariance(pmHDU *hdu, ///< HDU to read 67 psFits *fits ///< FITS file to read from 67 68 ); 68 69 … … 79 80 ); 80 81 81 /// Write the HDU header and weightmap82 bool pmHDUWrite Weight(pmHDU *hdu, ///< HDU to write83 psFits *fits, ///< FITS file to write to84 const pmConfig *config ///< Configuration82 /// Write the HDU header and variance map 83 bool pmHDUWriteVariance(pmHDU *hdu, ///< HDU to write 84 psFits *fits, ///< FITS file to write to 85 const pmConfig *config ///< Configuration 85 86 ); 86 87
Note:
See TracChangeset
for help on using the changeset viewer.
