IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2006, 8:01:05 AM (20 years ago)
Author:
magnier
Message:

updates relative to rel10_ifa_1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometry.h

    r6205 r6872  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2006-01-26 21:10:50 $
     10*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-04-17 18:01:04 $
    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
    37 p_pmHDU *pmHDUAlloc();
    38 void *pmHDUFree(p_pmHDU *hdu);
    39 
    4039/** Focal plane data structure
    41  * 
     40 *
    4241 *  A focal plane consists of one or more chips (according to the number of
    4342 *  pieces of contiguous silicon). It contains metadata containers for the
     
    5251 *  transformation which will be derived from numerically inverting the forward
    5352 *  transformation.
    54  * 
     53 *
    5554 */
    5655typedef struct
     
    7170
    7271/** Chip data structure
    73  * 
     72 *
    7473 *  A chip consists of one or more cells (according to the number of amplifiers
    7574 *  on the device). The chip contains metadata containers for the concepts and
     
    8281 *  inverting the forward transformation. A boolean indicates whether the chip is
    8382 *  of interest, allowing it to be excluded from analysis.
    84  * 
     83 *
    8584 */
    8685typedef struct
     
    9796    psArray *cells;                     ///< The cells (referred to by name)
    9897    pmFPA *parent;                      ///< Parent FPA
    99     bool valid;                         ///< Do we bother about reading and working with this chip?
     98    bool process;                       ///< Do we bother about reading and working with this chip?
     99    bool exists;                        ///< Does the chip exist --- has it been read in?
    100100    p_pmHDU *hdu;                       ///< FITS data
    101101}
     
    126126    psArray *readouts;                  ///< The readouts (referred to by number)
    127127    pmChip *parent;                     ///< Parent chip
    128     bool valid;                         ///< Do we bother about reading and working with this cell?
     128    bool process;                       ///< Do we bother about reading and working with this cell?
     129    bool exists;                        ///< Does the cell exist --- has it been read in?
    129130    p_pmHDU *hdu;                       ///< FITS data
    130131}
     
    144145{
    145146    // Position on the cell
     147    // XXX: These may be removed in the future; use parent->concepts instead?
    146148    int col0;                           ///< Offset from the left of chip.
    147149    int row0;                           ///< Offset from the bottom of chip.
     
    152154    psImage *mask;                      ///< Mask of input image
    153155    psImage *weight;                    ///< Weight of input image
    154     psList *bias;                       ///< List of bias section (sub-)images
    155156    psMetadata *analysis;               ///< Readout-level analysis metadata
    156157    pmCell *parent;                     ///< Parent cell
     
    183184 */
    184185pmCell *pmCellAlloc(
    185     pmChip *chip,                        ///< Parent chip
    186     psMetadata *cameradata,
    187     psString name
     186    pmChip *chip,       ///< Parent chip
     187    psMetadata *cameraData, ///< Camera data
     188    const char *name    ///< Name of cell
    188189);
    189190
    190191/** Allocates a pmChip
    191  * 
     192 *
    192193 *  The constructor shall make an empty pmChip. If the parent fpa is not NULL,
    193194 *  the parent link is made and the chip shall be placed in the parent's array
     
    199200 */
    200201pmChip *pmChipAlloc(
    201     pmFPA *fpa,
    202     psString name
    203 
     202    pmFPA *fpa,                         ///< FPA to which the chip belongs
     203    const char *name                    ///< Name of chip
    204204);
    205205
    206206/** Allocates a pmFPA
    207  * 
     207 *
    208208 *  The constructor shall make an empty pmFPA. The chips array shall be
    209209 *  allocated with a zero size, the camera and db pointers set to the values
    210210 *  provided, and the concepts metadata constructed. All other pointers in the
    211211 *  structure shall be initialized to NULL.
    212  * 
     212 *
    213213 */
    214214pmFPA *pmFPAAlloc(
     
    216216);
    217217
     218/** Allocates a p_pmHDU
     219 *
     220 * XXX: More detailed description
     221 *
     222 * @return p_pmHDU*    newly allocated p_pmHDU
     223 */
     224p_pmHDU *p_pmHDUAlloc(const char *extname // Extension name
     225                     );
     226
    218227
    219228/** Verify parent links.
    220  * 
     229 *
    221230 *  This function checks the validity of the parent links in the FPA hierarchy.
    222231 *  If a parent link is not set (or not set correctly), it is corrected, and the
    223232 *  function shall return false. If all the parent pointers were correct, the
    224233 *  function shall return true.
    225  * 
     234 *
    226235 */
    227236bool pmFPACheckParents(
     
    232241
    233242/** FUNC DESC
    234  *
    235  *
    236  *
    237  *
    238  */
    239 
     243 *
     244 *
     245 *
     246 *
     247 */
     248
     249
     250
     251/**
     252 *
     253 * pmFPASelectChip shall set valid to true for the specified chip number
     254 * (chipNum), and all other chips shall have valid set to false. In the event
     255 * that the specified chip number does not exist within the fpa, the function
     256 * shall return false.
     257 *
     258 */
     259bool pmFPASelectChip(
     260    pmFPA *fpa,
     261    int chipNum
     262);
     263
     264/**
     265 *
     266 * pmFPAExcludeChip shall set valid to false only for the specified chip
     267 * number (chipNum). In the event that the specified chip number does not exist
     268 * within the fpa, the function shall generate a warning, and perform no action.
     269 * The function shall return the number of chips within the fpa that have valid
     270 * set to true.
     271 *
     272 */
     273int pmFPAExcludeChip(
     274    pmFPA *fpa,
     275    int chipNum
     276);
    240277
    241278
     
    426463);
    427464
    428 /**
    429  *
    430  * pmFPASelectChip shall set valid to true for the specified chip number
    431  * (chipNum), and all other chips shall have valid set to false. In the event
    432  * that the specified chip number does not exist within the fpa, the function
    433  * shall return false.
    434  * 
    435  */
    436 bool pmFPASelectChip(
    437     pmFPA *fpa,
    438     int chipNum
    439 );
    440 
    441 
    442 /**
    443  *
    444  * pmFPAExcludeChip shall set valid to false only for the specified chip
    445  * number (chipNum). In the event that the specified chip number does not exist
    446  * within the fpa, the function shall generate a warning, and perform no action.
    447  * The function shall return the number of chips within the fpa that have valid
    448  * set to true.
    449  * 
    450  */
    451 int pmFPAExcludeChip(
    452     pmFPA *fpa,
    453     int chipNum
    454 );
    455 
    456 
    457 /**
    458  *
    459  * pmFPAConstruct shall construct a focal plane hierarchy from a camera
    460  * configuration. A db handle is also provided so that may be set in the pmFPA.
    461  * The resultant pmFPA and its lower-down components shall be ready for to read a
    462  * FITS file into it by setting the extname pointers at the appropriate levels to
    463  * the appropriate FITS extension name.
    464  * 
    465  */
    466 pmFPA *pmFPAConstruct(
    467     const psMetadata *camera,
    468     psDB *db
    469 );
    470 
    471465
    472466#endif // #ifndef PS_ASTROMETRY_H
Note: See TracChangeset for help on using the changeset viewer.