IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 31, 2004, 2:57:48 PM (22 years ago)
Author:
desonia
Message:

added constructors for the astronomical imagery structs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psAstrometry.h

    r1530 r1665  
    88*  @author George Gusciora, MHPCC
    99*
    10 *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-13 22:41:24 $
     10*  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-09-01 00:57:48 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    239239);
    240240
     241/** Allocator for psFPA
     242 *
     243 *  This function shall make an empty psFPA, with the nChips allocated
     244 *  pointers to psChips being set to NULL; all other pointers in the structure
     245 *  shall be initialized to NULL, apart from the grommit, which shall be
     246 *  constructed on the basis of the exp parameter.
     247 *
     248 *  @return psFPA*    a newly allocated psFPA
     249 */
     250psFPA* psFPAAlloc(
     251    int nChips,                        ///< number of chips in the FPA
     252    const psExposure* exp              ///< the exposure information
     253);
     254
     255/** Allocates a psChip
     256 *
     257 *  This allocator shall make an empty psChip, with the nCells allocated
     258 *  pointers to psCells being set to NULL; all other pointers in the structure
     259 *  shall be initialized to NULL.
     260 *
     261 *  @return psChip*    newly allocated psChip
     262 */
     263psChip* psChipAlloc(
     264    int nCells,                        ///< number of cells in Chip
     265    psFPA* parentFPA                   ///< parent FPA
     266);
     267
     268/** Allocates a psCell
     269 *
     270 *  The constructor shall make an empty psCell, with the nReadouts allocated
     271 *  pointers to psReadouts being set to NULL; all other pointers in the
     272 *  structure shall be initialized to NULL.
     273 *
     274 *  @return psCell*    newly allocated psCell
     275 */
     276psCell* psCellAlloc(
     277    int nReadouts,                     ///< number of readouts in cell
     278    psChip* parentChip                 ///< parent Chip
     279);
     280
     281/** Allocates a psReadout
     282 *
     283 *  All pointers in the structure other than the image shall be initialized
     284 *  to NULL.
     285 *
     286 *  @return psReadout*    newly allocated psReadout
     287 */
     288psReadout* psReadoutAlloc(
     289    int col0,                          ///< offset from the left of the cell
     290    int row0,                          ///< offset from the bottom of the cell
     291    const psImage* image               ///< image of the readout
     292);
     293
    241294/** Allocates a Wallace's Grommit structure.
    242295 *
     
    246299 *  @return psGrommit* New grommit structure.
    247300 */
    248 psGrommit* psGrommitAlloc(const psExposure* exp        ///< the cooresponding exposure structure.
    249                          );
    250 void p_psGrommitFree(psGrommit *grommit);
    251301psGrommit* psGrommitAlloc(
    252302    const psExposure* exp              ///< the cooresponding exposure structure.
Note: See TracChangeset for help on using the changeset viewer.