IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36347


Ignore:
Timestamp:
Dec 4, 2013, 2:28:32 PM (13 years ago)
Author:
eugene
Message:

if we thing something is a star, use the PSF model when subtracting (even if we fitted ext models)

Location:
branches/eam_branches/ipp-20130904/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c

    r36342 r36347  
    597597        }
    598598
     599        // we are allowed to fit both stars and non-stars here -- if we have fitted
     600        // something which we think is a star, we should use that model to subtract the
     601        // object from the image.
     602        if (source->type == PM_SOURCE_TYPE_STAR) {
     603          // ensure the modelPSF is cached
     604          pmSourceCacheModel (source, maskVal);
     605          pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
     606          continue;
     607        }
     608
    599609        // evaluate the relative quality of the models, choose one
     610        // the PSF model might be the best fit : allow it to succeed
    600611        float minChisq = NAN;
    601612        int minModel = -1;
  • branches/eam_branches/ipp-20130904/psphot/src/psphotSourceSize.c

    r36340 r36347  
    605605            psTrace("psphotSourceClassRegion.EXT",4,"CLASS: %g %g\t%g %g\t%g %g\t%g %g\t%g EXT\n",
    606606                    source->peak->xf, source->peak->yf, Mminor, kMag, dMag, nSigmaMAG, options->sizeLimitCR, options->magLimitCR, options->nSigmaApResid);
     607            source->type = PM_SOURCE_TYPE_EXTENDED;
    607608            source->mode |= PM_SOURCE_MODE_EXT_LIMIT;
    608609            source->tmpFlags |= PM_SOURCE_TMPF_SIZE_MEASURED;
     
    624625                    source->peak->xf, source->peak->yf, Mminor, kMag, dMag, nSigmaMAG, options->sizeLimitCR, options->magLimitCR, options->nSigmaApResid,
    625626                    momentRatioVeres,options->altDiffExtThresh);
     627            source->type = PM_SOURCE_TYPE_EXTENDED;
    626628            source->mode |= PM_SOURCE_MODE_EXT_LIMIT;
    627629            source->tmpFlags |= PM_SOURCE_TMPF_SIZE_MEASURED;
Note: See TracChangeset for help on using the changeset viewer.