IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2006, 5:35:58 PM (20 years ago)
Author:
Paul Price
Message:

Documenting pmHDU.[ch]

File:
1 edited

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
    115#ifndef PM_HDU_H
    216#define PM_HDU_H
    317
    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.
    522typedef struct
    623{
    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
    1531}
    1632pmHDU;
    1733
    1834
    19 // Allocators
     35/// Allocator for pmHDU
    2036pmHDU *pmHDUAlloc(const char *extname);
    2137
    22 // Read the header
    23 bool pmHDUReadHeader(pmHDU *hdu,        // HDU for which to read header
    24                      psFits *fits       // FITS file from which to read
     38/// Read the HDU header only
     39bool pmHDUReadHeader(pmHDU *hdu,        ///< HDU for which to read header
     40                     psFits *fits       ///< FITS file from which to read
    2541                    );
    2642
    27 // Read the HDU
    28 bool pmHDURead(pmHDU *hdu,              // HDU to read
    29                psFits *fits             // FITS file to read from
     43/// Read the HDU header and pixels
     44bool pmHDURead(pmHDU *hdu,              ///< HDU to read
     45               psFits *fits             ///< FITS file to read from
    3046              );
    3147
    32 // Write the HDU
    33 bool pmHDUWrite(pmHDU *hdu,             // HDU to write
    34                 psFits *fits            // FITS file to write to
     48/// Write the HDU header and pixels
     49bool pmHDUWrite(pmHDU *hdu,             ///< HDU to write
     50                psFits *fits            ///< FITS file to write to
    3551               );
    3652
Note: See TracChangeset for help on using the changeset viewer.