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/pswarpTransformSources.c

    r20578 r21323  
     1/** @file pswarpTransformSources.c
     2 *
     3 *  @brief
     4 *
     5 *  @ingroup pswarp
     6 *
     7 *  @author IfA
     8 *  @version $Revision: 1.7 $ $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"
    214
    3 #define SOURCE_ARRAY_BUFFER 100         // Size to grow the array of sources at a time
     15#define SOURCE_ARRAY_BUFFER 100         ///< Size to grow the array of sources at a time
    416
    5 // NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT
     17/**
     18 * NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT
     19 */
    620bool pswarpTransformSources(pmReadout *output, pmReadout *input, pmConfig *config)
    721{
     
    3347    // this does not cost us so much time.
    3448    for (int i = 0; i < inSources->n; i++) {
    35         pmSource *source = inSources->data[i]; // Source of interest
    36         pmModel *model = source->modelPSF; // Model for this source
    37         float xIn, yIn;             // Coordinates of source
     49        pmSource *source = inSources->data[i]; ///< Source of interest
     50        pmModel *model = source->modelPSF; ///< Model for this source
     51        float xIn, yIn;             ///< Coordinates of source
    3852        xIn = model->params->data.F32[PM_PAR_XPOS] - input->image->col0;
    3953        yIn = model->params->data.F32[PM_PAR_YPOS] - input->image->row0;
    4054
    41         int xGrid, yGrid;           // Grid coordinates for local map
     55        int xGrid, yGrid;           ///< Grid coordinates for local map
    4256        if (!pswarpMapGridSetGrid(sourceGrid, xIn + 0.5, yIn + 0.5, &xGrid, &yGrid)) {
    4357            psError(PS_ERR_UNKNOWN, false, "Unable to get grid coordinates for source at %f,%f\n",
     
    5367        }
    5468
    55         pswarpMap *map = sourceGrid->maps[xGrid][yGrid]; // Locally linear transformation
    56         double xOut, yOut;          // Output coordinates
     69        pswarpMap *map = sourceGrid->maps[xGrid][yGrid]; ///< Locally linear transformation
     70        double xOut, yOut;          ///< Output coordinates
    5771        if (!pswarpMapApply(&xOut, &yOut, map, xIn + 0.5, yIn + 0.5)) {
    5872            psError(PS_ERR_UNKNOWN, false, "Unable to transform coordinates for source at %f,%f\n",
     
    7387        // Magnitudes will be off if there's any change in scale, but for our purposes (mainly x,y and
    7488        // relative flux) that's OK.
    75         pmSource *new = pmSourceAlloc(); // New source
     89        pmSource *new = pmSourceAlloc(); ///< New source
    7690        new->peak = pmPeakAlloc(xOut, yOut, source->peak->flux, PM_PEAK_LONE);
    7791        new->peak->flux = source->peak->flux;
Note: See TracChangeset for help on using the changeset viewer.