IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28333


Ignore:
Timestamp:
Jun 15, 2010, 11:15:20 AM (16 years ago)
Author:
Paul Price
Message:

Merging r28332 to fix stacks.

Location:
tags/ipp-20100610/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100610/psModules

  • tags/ipp-20100610/psModules/src/imcombine/pmPSFEnvelope.c

    r27331 r28333  
    3333
    3434
    35 // #define TESTING                         // Enable test output
     35//#define TESTING                         // Enable test output
    3636// #define PEAK_NORM                       // Normalise peaks?
    3737#define PEAK_FLUX 1.0e4                 // Peak flux for each source
     
    235235
    236236            // Get the radius
    237             pmModel *model = pmModelFromPSFforXY(psf, x, y, PEAK_FLUX); // Model for source
     237            pmModel *model = pmModelFromPSFforXY(psf, source->peak->xf, source->peak->yf, PEAK_FLUX); // Model for source
    238238            if (!model || (model->flags & MODEL_MASK)) {
    239239                continue;
     
    321321    numFakes = fakes->n;
    322322
    323     if (numFakes == 0.0) {
     323    if (numFakes == 0) {
    324324        psError(PS_ERR_UNKNOWN, false, "No fake sources are suitable for PSF fitting.");
    325325        psFree(fakes);
Note: See TracChangeset for help on using the changeset viewer.