IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2005, 5:18:39 PM (21 years ago)
Author:
Paul Price
Message:

Importing PAP code from phase 2. NOTE: Reverted files in detrend/ and imsubtract/ to a previous version. DO NOT merge these files back!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_051214/psModules/src/astrom/pmAstrometry.h

    r5739 r5795  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-12-08 00:00:57 $
     10*  @version $Revision: 1.5.2.1 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-12-17 03:18:38 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3030{
    3131    const char *extname;                // Extension name, if it corresponds to this level
    32     psArray *pixels;                    // The pixel data, if it corresponds to this level
    3332    psMetadata *header;                 // The FITS header, if it corresponds to this level
     33    psArray *images;                    // The pixel data, if it corresponds to this level
     34    psArray *masks;                     // The mask data, if it corresponds to this level
     35    psArray *weights;                   // The weight data, if it corresponds to this level
    3436}
    3537p_pmHDU;
    3638
    3739/** Focal plane data structure
    38  * 
     40 *
    3941 *  A focal plane consists of one or more chips (according to the number of
    4042 *  pieces of contiguous silicon). It contains metadata containers for the
     
    4951 *  transformation which will be derived from numerically inverting the forward
    5052 *  transformation.
    51  * 
     53 *
    5254 */
    5355typedef struct
     
    6264    const psMetadata *camera;           ///< Camera configuration
    6365    psArray *chips;                     ///< The chips
    64     p_pmHDU *private;                   ///< FITS data
     66    p_pmHDU *hdu;                       ///< FITS data
    6567    psMetadata *phu;                    ///< Primary Header
    6668}
     
    6870
    6971/** Chip data structure
    70  * 
     72 *
    7173 *  A chip consists of one or more cells (according to the number of amplifiers
    7274 *  on the device). The chip contains metadata containers for the concepts and
     
    7981 *  inverting the forward transformation. A boolean indicates whether the chip is
    8082 *  of interest, allowing it to be excluded from analysis.
    81  * 
     83 *
    8284 */
    8385typedef struct
     
    9597    pmFPA *parent;                      ///< Parent FPA
    9698    bool valid;                         ///< Do we bother about reading and working with this chip?
    97     p_pmHDU *private;                   ///< FITS data
     99    p_pmHDU *hdu;                       ///< FITS data
    98100}
    99101pmChip;
     
    124126    pmChip *parent;                     ///< Parent chip
    125127    bool valid;                         ///< Do we bother about reading and working with this cell?
    126     p_pmHDU *private;                   ///< FITS data
     128    p_pmHDU *hdu;                       ///< FITS data
    127129}
    128130pmCell;
     
    141143{
    142144    // Position on the cell
     145    // XXX: These may be removed in the future; use parent->concepts instead?
    143146    int col0;                           ///< Offset from the left of chip.
    144147    int row0;                           ///< Offset from the bottom of chip.
     
    149152    psImage *mask;                      ///< Mask of input image
    150153    psImage *weight;                    ///< Weight of input image
    151     psList *bias;                       ///< List of bias section (sub-)images
    152154    psMetadata *analysis;               ///< Readout-level analysis metadata
    153155    pmCell *parent;                     ///< Parent cell
     
    180182 */
    181183pmCell *pmCellAlloc(
    182     pmChip *chip,                        ///< Parent chip
    183     psMetadata *cameradata,
    184     psString name
     184    pmChip *chip,       ///< Parent chip
     185    psMetadata *cameraData, ///< Camera data
     186    const char *name    ///< Name of cell
    185187);
    186188
    187189/** Allocates a pmChip
    188  * 
     190 *
    189191 *  The constructor shall make an empty pmChip. If the parent fpa is not NULL,
    190192 *  the parent link is made and the chip shall be placed in the parent's array
     
    196198 */
    197199pmChip *pmChipAlloc(
    198     pmFPA *fpa,
    199     psString name
    200 
     200    pmFPA *fpa,                         ///< FPA to which the chip belongs
     201    const char *name                    ///< Name of chip
    201202);
    202203
    203204/** Allocates a pmFPA
    204  * 
     205 *
    205206 *  The constructor shall make an empty pmFPA. The chips array shall be
    206207 *  allocated with a zero size, the camera and db pointers set to the values
    207208 *  provided, and the concepts metadata constructed. All other pointers in the
    208209 *  structure shall be initialized to NULL.
    209  * 
     210 *
    210211 */
    211212pmFPA *pmFPAAlloc(
     
    213214);
    214215
     216/** Allocates a p_pmHDU
     217 *
     218 * XXX: More detailed description
     219 *
     220 * @return p_pmHDU*    newly allocated p_pmHDU
     221 */
     222p_pmHDU *p_pmHDUAlloc(const char *extname // Extension name
     223                     );
     224
    215225
    216226/** Verify parent links.
    217  * 
     227 *
    218228 *  This function checks the validity of the parent links in the FPA hierarchy.
    219229 *  If a parent link is not set (or not set correctly), it is corrected, and the
    220230 *  function shall return false. If all the parent pointers were correct, the
    221231 *  function shall return true.
    222  * 
     232 *
    223233 */
    224234bool pmFPACheckParents(
     
    229239
    230240/** FUNC DESC
    231  *
    232  *
    233  *
    234  *
    235  */
    236 
     241 *
     242 *
     243 *
     244 *
     245 */
     246
     247
     248
     249/**
     250 *
     251 * pmFPASelectChip shall set valid to true for the specified chip number
     252 * (chipNum), and all other chips shall have valid set to false. In the event
     253 * that the specified chip number does not exist within the fpa, the function
     254 * shall return false.
     255 *
     256 */
     257bool pmFPASelectChip(
     258    pmFPA *fpa,
     259    int chipNum
     260);
     261
     262/**
     263 *
     264 * pmFPAExcludeChip shall set valid to false only for the specified chip
     265 * number (chipNum). In the event that the specified chip number does not exist
     266 * within the fpa, the function shall generate a warning, and perform no action.
     267 * The function shall return the number of chips within the fpa that have valid
     268 * set to true.
     269 *
     270 */
     271int pmFPAExcludeChip(
     272    pmFPA *fpa,
     273    int chipNum
     274);
    237275
    238276
     
    423461);
    424462
    425 /**
    426  *
    427  * pmFPASelectChip shall set valid to true for the specified chip number
    428  * (chipNum), and all other chips shall have valid set to false. In the event
    429  * that the specified chip number does not exist within the fpa, the function
    430  * shall return false.
    431  * 
    432  */
    433 bool pmFPASelectChip(
    434     pmFPA *fpa,
    435     int chipNum
    436 );
    437 
    438 /**
    439  *
    440  * pmFPAExcludeChip shall set valid to false only for the specified chip
    441  * number (chipNum). In the event that the specified chip number does not exist
    442  * within the fpa, the function shall generate a warning, and perform no action.
    443  * The function shall return the number of chips within the fpa that have valid
    444  * set to true.
    445  * 
    446  */
    447 int pmFPAExcludeChip(
    448     pmFPA *fpa,
    449     int chipNum
    450 );
    451 
    452463
    453464#endif // #ifndef PS_ASTROMETRY_H
Note: See TracChangeset for help on using the changeset viewer.