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/pmFPAWrite.h

    r21279 r21363  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2009-02-04 02:39:36 $
     6 * @version $Revision: 1.13 $ $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 */
     
    2425                        psFits *fits,   ///<  FITS file to which to write
    2526                        int z           ///<  Image plane to write
    26                        );
     27    );
    2728
    2829/// Write a cell to a FITS file
     
    3637                 pmConfig *config,      ///<  Configuration
    3738                 bool blank             ///<  Write a blank PHU?
    38                 );
     39    );
    3940
    4041/// Write a chip to a FITS file
     
    4950                 bool blank,            ///<  Write a blank PHU?
    5051                 bool recurse           ///<  Recurse to lower levels?
    51                 );
     52    );
    5253
    5354/// Write an FPA to a FITS file
     
    6263                bool blank,             ///<  Write a blank PHU?
    6364                bool recurse            ///<  Recurse to lower levels?
    64                );
     65    );
    6566
    6667/// Write a cell mask to a FITS file
     
    7475                     pmConfig *config,  ///<  Configuration
    7576                     bool blank         ///<  Write a blank PHU?
    76                     );
     77    );
    7778
    7879/// Write a chip mask to a FITS file
     
    8889                     bool blank,        ///<  Write a blank PHU?
    8990                     bool recurse       ///<  Recurse to lower levels?
    90                     );
     91    );
    9192
    9293/// Write an FPA mask to a FITS file
     
    102103                    bool blank,         ///<  Write a blank PHU?
    103104                    bool recurse        ///<  Recurse to lower levels?
    104                    );
     105    );
    105106
    106 /// Write a cell weight to a FITS file
     107/// Write a cell variance to a FITS file
    107108///
    108 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU weight pixels if required.  A blank (i.e., image-less
     109/// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU variance pixels if required.  A blank (i.e., image-less
    109110/// header) is written only if specifically requested.  Writes the concepts to the various locations, and then
    110 /// the HDU weight to the FITS file.  This function should be called at the beginning of the output cell loop
    111 /// with blank=true in order to produce the correct file structure.
    112 bool pmCellWriteWeight(pmCell *cell,    ///<  Cell to write
    113                        psFits *fits,    ///<  FITS file to which to write
    114                        pmConfig *config, ///<  Configuration
    115                        bool blank       ///<  Write a blank PHU?
    116                       );
     111/// the HDU variance to the FITS file.  This function should be called at the beginning of the output cell
     112/// loop with blank=true in order to produce the correct file structure.
     113bool pmCellWriteVariance(pmCell *cell,    ///<  Cell to write
     114                         psFits *fits,    ///<  FITS file to which to write
     115                         pmConfig *config, ///<  Configuration
     116                         bool blank       ///<  Write a blank PHU?
     117    );
    117118
    118 /// Write a chip weight to a FITS file
     119/// Write a chip variance to a FITS file
    119120///
    120 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU weight pixels if required.  A blank (i.e., image-less
     121/// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU variance pixels if required.  A blank (i.e., image-less
    121122/// header) is written only if specifically requested.  Writes the concepts to the various locations, and then
    122 /// the HDU weight to the FITS file, optionally recursing to lower levels.  This function should be called at
    123 /// the beginning of the output chip loop with blank=true and recurse=false in order to produce the correct
     123/// the HDU variance to the FITS file, optionally recursing to lower levels.  This function should be called
     124/// at the beginning of the output chip loop with blank=true and recurse=false in order to produce the correct
    124125/// file structure.
    125 bool pmChipWriteWeight(pmChip *chip,    ///<  Chip to write
    126                        psFits *fits,    ///<  FITS file to which to write
    127                        pmConfig *config, ///<  Configuration
    128                        bool blank,      ///<  Write a blank PHU?
    129                        bool recurse     ///<  Recurse to lower levels?
    130                       );
     126bool pmChipWriteVariance(pmChip *chip,    ///<  Chip to write
     127                         psFits *fits,    ///<  FITS file to which to write
     128                         pmConfig *config, ///<  Configuration
     129                         bool blank,      ///<  Write a blank PHU?
     130                         bool recurse     ///<  Recurse to lower levels?
     131    );
    131132
    132 /// Write an FPA weight to a FITS file
     133/// Write an FPA variance to a FITS file
    133134///
    134 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU weight pixels if required.  A blank (i.e., image-less
     135/// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU variance pixels if required.  A blank (i.e., image-less
    135136/// header) is written only if specifically requested.  Writes the concepts to the various locations, and then
    136 /// the HDU weight to the FITS file, optionally recursing to lower levels.  This function should be called at
    137 /// the beginning of the output FPA loop with blank=true and recurse=false in order to produce the correct
     137/// the HDU variance to the FITS file, optionally recursing to lower levels.  This function should be called
     138/// at the beginning of the output FPA loop with blank=true and recurse=false in order to produce the correct
    138139/// file structure.
    139 bool pmFPAWriteWeight(pmFPA *fpa,       ///<  FPA to write
    140                       psFits *fits,     ///<  FITS file to which to write
    141                       pmConfig *config, ///<  Configuration
    142                       bool blank,       ///<  Write a blank PHU?
    143                       bool recurse      ///<  Recurse to lower levels?
    144                      );
     140bool pmFPAWriteVariance(pmFPA *fpa,       ///<  FPA to write
     141                        psFits *fits,     ///<  FITS file to which to write
     142                        pmConfig *config, ///<  Configuration
     143                        bool blank,       ///<  Write a blank PHU?
     144                        bool recurse      ///<  Recurse to lower levels?
     145    );
    145146
    146147
     
    153154                     const pmCell *cell, ///< Cell containing FITS table in the analysis metadata
    154155                     const char *name   ///< Name for the table data, and the extension name
    155                     );
     156    );
    156157
    157158int pmChipWriteTable(psFits *fits,      ///< FITS file to which to write
    158159                     const pmChip *chip, ///< Chip containing cells with tables to write
    159160                     const char *name   ///< Name for the table data, and the extension name
    160                     );
     161    );
    161162
    162163int pmFPAWriteTable(psFits *fits,       ///< FITS file to which to write
    163164                    const pmFPA *fpa,   ///< FPA containing cells with tables to write
    164165                    const char *name    ///< Name for the table data, and the extension name
    165                    );
     166    );
     167
     168/// Write covariance matrix to a FITS file
     169///
     170/// The covariance matrices for a cell are written to an independent extension, named after the chip and cell
     171/// name.
     172bool pmCellWriteCovariance(psFits *fits,///< FITS file to which to write
     173                           const pmCell *cell ///< Cell for which to write covariance
     174    );
     175
     176bool pmChipWriteCovariance(psFits *fits,///< FITS file to which to write
     177                           const pmChip *chip ///< Chip for which to write covariance
     178    );
     179
     180bool pmFPAWriteCovariance(psFits *fits,///< FITS file to which to write
     181                          const pmFPA *fpa ///< FPA for which to write covariance
     182    );
    166183
    167184// Update the header before writing to be consistent
Note: See TracChangeset for help on using the changeset viewer.