Changeset 9604 for trunk/psModules/src/camera/pmHDU.h
- Timestamp:
- Oct 16, 2006, 5:35:58 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDU.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDU.h
r7717 r9604 1 /// @file pmHDU.h 2 /// 3 /// @brief Define a header data unit (from a FITS file), with functions to read and write 4 /// 5 /// @ingroup Camera 6 /// 7 /// @author Paul Price, IfA 8 /// 9 /// @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2006-10-17 03:35:58 $ 11 /// 12 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii 13 /// 14 1 15 #ifndef PM_HDU_H 2 16 #define PM_HDU_H 3 17 4 // An instance of the FITS Header Data Unit 18 /// An instance of the FITS Header Data Unit 19 /// 20 /// Of course, it is not an exact replica of a FITS HDU --- they have no mask and weight data, but these are 21 /// stored here for convenience --- it keeps all the relevant data about the image in one place. 5 22 typedef struct 6 23 { 7 psString extname; // The extension name 8 bool blankPHU; // Is this a blank FITS Primary Header Unit, i.e., no data? 9 psMetadata *format; // The camera format 10 psMetadata *header; // The FITS header, or NULL if primary for FITS; or section info 11 psArray *images; // The pixel data 12 psArray *weights; // The pixel data 13 psArray *masks; // The pixel data 14 psArray *table; // The table data 24 psString extname; ///< The extension name 25 bool blankPHU; ///< Is this a blank FITS Primary Header Unit, i.e., no data? 26 psMetadata *format; ///< The camera format 27 psMetadata *header; ///< The FITS header, or NULL if primary for FITS; or section info 28 psArray *images; ///< The pixel data 29 psArray *weights; ///< The pixel data 30 psArray *masks; ///< The pixel data 15 31 } 16 32 pmHDU; 17 33 18 34 19 // Allocators35 /// Allocator for pmHDU 20 36 pmHDU *pmHDUAlloc(const char *extname); 21 37 22 // Read the header23 bool pmHDUReadHeader(pmHDU *hdu, // HDU for which to read header24 psFits *fits // FITS file from which to read38 /// Read the HDU header only 39 bool pmHDUReadHeader(pmHDU *hdu, ///< HDU for which to read header 40 psFits *fits ///< FITS file from which to read 25 41 ); 26 42 27 // Read the HDU28 bool pmHDURead(pmHDU *hdu, // HDU to read29 psFits *fits // FITS file to read from43 /// Read the HDU header and pixels 44 bool pmHDURead(pmHDU *hdu, ///< HDU to read 45 psFits *fits ///< FITS file to read from 30 46 ); 31 47 32 // Write the HDU33 bool pmHDUWrite(pmHDU *hdu, // HDU to write34 psFits *fits // FITS file to write to48 /// Write the HDU header and pixels 49 bool pmHDUWrite(pmHDU *hdu, ///< HDU to write 50 psFits *fits ///< FITS file to write to 35 51 ); 36 52
Note:
See TracChangeset
for help on using the changeset viewer.
