IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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)

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.