IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2011, 12:49:04 PM (15 years ago)
Author:
eugene
Message:

correct typo in logic for GuessModels; test option for large object moments (try harder); updates to visuals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotGuessModels.c

    r30038 r30753  
    160160        pmSource *source = sources->data[i];
    161161
     162        if (source->mode & PM_SOURCE_MODE_MOMENTS_FAILURE) {
     163            fprintf (stderr, "moment failure\n");
     164        }
     165
    162166        // this is used to mark sources for which the model is measured. We check later that
    163167        // all are used.
     
    187191        useMoments = (useMoments && source->moments);          // can't if there are no moments
    188192        useMoments = (useMoments && source->moments->nPixels); // can't if the moments were not measured
    189         useMoments = (useMoments && !(source->mode && PM_SOURCE_MODE_MOMENTS_FAILURE)); // can't if the moments failed...
     193        useMoments = (useMoments && !(source->mode & PM_SOURCE_MODE_MOMENTS_FAILURE)); // can't if the moments failed...
    190194
    191195        float Xo, Yo;
     
    198202        }
    199203
     204        if (source->mode & PM_SOURCE_MODE_SATSTAR) {
     205            fprintf (stderr, "satstar: %f,%f vs %f,%f : %c\n",
     206                     source->moments->Mx, source->moments->My,
     207                     source->peak->xf, source->peak->yf,
     208                     (useMoments ? 'T' : 'F'));
     209        }
     210
    200211        // set PSF parameters for this model (apply 2D shape model to coordinates Xo, Yo)
    201212        pmModel *modelPSF = pmModelFromPSFforXY(psf, Xo, Yo, Io);
Note: See TracChangeset for help on using the changeset viewer.