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

    r18163 r21211  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-06-17 22:16:38 $
     6 * @version $Revision: 1.11.44.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 */
     
    2424                        psFits *fits,   ///<  FITS file to which to write
    2525                        int z           ///<  Image plane to write
    26                        );
     26    );
    2727
    2828/// Write a cell to a FITS file
     
    3636                 pmConfig *config,      ///<  Configuration
    3737                 bool blank             ///<  Write a blank PHU?
    38                 );
     38    );
    3939
    4040/// Write a chip to a FITS file
     
    4949                 bool blank,            ///<  Write a blank PHU?
    5050                 bool recurse           ///<  Recurse to lower levels?
    51                 );
     51    );
    5252
    5353/// Write an FPA to a FITS file
     
    6262                bool blank,             ///<  Write a blank PHU?
    6363                bool recurse            ///<  Recurse to lower levels?
    64                );
     64    );
    6565
    6666/// Write a cell mask to a FITS file
     
    7474                     pmConfig *config,  ///<  Configuration
    7575                     bool blank         ///<  Write a blank PHU?
    76                     );
     76    );
    7777
    7878/// Write a chip mask to a FITS file
     
    8888                     bool blank,        ///<  Write a blank PHU?
    8989                     bool recurse       ///<  Recurse to lower levels?
    90                     );
     90    );
    9191
    9292/// Write an FPA mask to a FITS file
     
    102102                    bool blank,         ///<  Write a blank PHU?
    103103                    bool recurse        ///<  Recurse to lower levels?
    104                    );
     104    );
    105105
    106 /// Write a cell weight to a FITS file
     106/// Write a cell variance to a FITS file
    107107///
    108 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU weight pixels if required.  A blank (i.e., image-less
     108/// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU variance pixels if required.  A blank (i.e., image-less
    109109/// 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                       );
     110/// the HDU variance to the FITS file.  This function should be called at the beginning of the output cell
     111/// loop with blank=true in order to produce the correct file structure.
     112bool pmCellWriteVariance(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    );
    117117
    118 /// Write a chip weight to a FITS file
     118/// Write a chip variance to a FITS file
    119119///
    120 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU weight pixels if required.  A blank (i.e., image-less
     120/// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU variance pixels if required.  A blank (i.e., image-less
    121121/// 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
     122/// the HDU variance to the FITS file, optionally recursing to lower levels.  This function should be called
     123/// at the beginning of the output chip loop with blank=true and recurse=false in order to produce the correct
    124124/// 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                       );
     125bool pmChipWriteVariance(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    );
    131131
    132 /// Write an FPA weight to a FITS file
     132/// Write an FPA variance to a FITS file
    133133///
    134 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU weight pixels if required.  A blank (i.e., image-less
     134/// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU variance pixels if required.  A blank (i.e., image-less
    135135/// 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
     136/// the HDU variance to the FITS file, optionally recursing to lower levels.  This function should be called
     137/// at the beginning of the output FPA loop with blank=true and recurse=false in order to produce the correct
    138138/// 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                      );
     139bool pmFPAWriteVariance(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    );
    145145
    146146
     
    153153                     const pmCell *cell, ///< Cell containing FITS table in the analysis metadata
    154154                     const char *name   ///< Name for the table data, and the extension name
    155                     );
     155    );
    156156
    157157int pmChipWriteTable(psFits *fits,      ///< FITS file to which to write
    158158                     const pmChip *chip, ///< Chip containing cells with tables to write
    159159                     const char *name   ///< Name for the table data, and the extension name
    160                     );
     160    );
    161161
    162162int pmFPAWriteTable(psFits *fits,       ///< FITS file to which to write
    163163                    const pmFPA *fpa,   ///< FPA containing cells with tables to write
    164164                    const char *name    ///< Name for the table data, and the extension name
    165                    );
     165    );
    166166
    167167// XXX better name, please
Note: See TracChangeset for help on using the changeset viewer.