IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 10:44:04 AM (17 years ago)
Author:
eugene
Message:

merging Doxygen comments by Bill G from eam_branch_20081230

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpDefine.c

    r18712 r21323  
     1/** @file pswarpDefine.c
     2 *
     3 *  @brief
     4 *
     5 *  @ingroup pswarp
     6 *
     7 *  @author IfA
     8 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-05 20:44:04 $
     10 *  Copyright 2009 Institute for Astronomy, University of Hawaii
     11 */
     12
    113# include "pswarp.h"
    2 // this function loads the skycell metadata
    314
     15/**
     16 * loads the skycell metadata
     17 */
    418bool pswarpDefine (pmConfig *config) {
    519
     
    4256        view->cell = 0;
    4357        view->readout = 0;
    44         pmCell *source = pmFPAfileThisCell(config->files, view, "PSWARP.SKYCELL"); // Source cell
    45         pmHDU *hdu = pmHDUFromCell(source); // HDU for source
     58        pmCell *source = pmFPAfileThisCell(config->files, view, "PSWARP.SKYCELL"); ///< Source cell
     59        pmHDU *hdu = pmHDUFromCell(source); ///< HDU for source
    4660        if (!hdu || !hdu->header) {
    4761            psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find header for sky cell.");
     
    4963            return false;
    5064        }
    51         int numCols = psMetadataLookupS32(NULL, hdu->header, "NAXIS1"); // Number of columns
    52         int numRows = psMetadataLookupS32(NULL, hdu->header, "NAXIS2"); // Number of rows
     65        int numCols = psMetadataLookupS32(NULL, hdu->header, "NAXIS1"); ///< Number of columns
     66        int numRows = psMetadataLookupS32(NULL, hdu->header, "NAXIS2"); ///< Number of rows
    5367
    54         pmCell *target = pmFPAviewThisCell(view, output->fpa); // Target cell
    55         pmReadout *readout = pmReadoutAlloc(target); // Target readout
     68        pmCell *target = pmFPAviewThisCell(view, output->fpa); ///< Target cell
     69        pmReadout *readout = pmReadoutAlloc(target); ///< Target readout
    5670        readout->image = psImageAlloc(numCols, numRows, PS_TYPE_F32);
    5771        psImageInit(readout->image, NAN);
     
    7286    view->cell = 0;
    7387    view->readout = -1;
    74     pmHDU *phu = pmFPAviewThisPHU(view, skycell->fpa); // Skycell PHU
    75     pmHDU *hdu = pmFPAviewThisHDU(view, skycell->fpa); // Skycell header
     88    pmHDU *phu = pmFPAviewThisPHU(view, skycell->fpa); ///< Skycell PHU
     89    pmHDU *hdu = pmFPAviewThisHDU(view, skycell->fpa); ///< Skycell header
    7690    bool bilevelAstrometry = false;
    7791    if (phu) {
     
    8397
    8498    // We read from the skycell into the output.  i.e., the output receives the desired astrometry.
    85     pmChip *outputChip = pmFPAviewThisChip(view, output->fpa); // Chip in the output
     99    pmChip *outputChip = pmFPAviewThisChip(view, output->fpa); ///< Chip in the output
    86100    if (bilevelAstrometry) {
    87101        if (!pmAstromReadBilevelMosaic(output->fpa, phu->header)) {
     
    104118    }
    105119
    106     const char *name = psMetadataLookupStr(NULL, input->fpa->concepts, "FPA.OBS"); // Name of FPA
     120    const char *name = psMetadataLookupStr(NULL, input->fpa->concepts, "FPA.OBS"); ///< Name of FPA
    107121    view->chip = view->cell = view->readout = -1;
    108122    pmFPAAddSourceFromView(output->fpa, name, view, output->format);
Note: See TracChangeset for help on using the changeset viewer.