IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2011, 8:53:12 AM (15 years ago)
Author:
eugene
Message:

adding flag to mark PASS1 (vs PASS2) detections; moving AP_MAGS flag inot pmSourcePhotometry; bad mask was missing suspect bits (logic error in I/O writing MASK.PSPHOT - added explicitly to maskPoor in PSF_QF_PERFECT; limit Kron radius at upper and lower bounds; use non-linear position errors only for PSF sources in PSF output (extended sources not fitted with non-linear PSF model); make sure pmSourceCopy gets all the elements of the structure that it needs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/psModules/src/objects/pmSourcePhotometry.c

    r31153 r31312  
    310310    bool status;
    311311    status = pmSourcePhotometryAper(&source->apMagRaw, &source->apFlux, &source->apFluxErr, model, image, variance, mask, maskVal);
     312    if (status) {
     313        source->mode |= PM_SOURCE_MODE_AP_MAGS;
     314    }
    312315
    313316    return status;
     
    413416    maskBad &= ~maskSuspect;
    414417
     418    psImageMaskType maskPoor = maskVal | maskSuspect;
     419
    415420    // measure modelSum and validSum.  this function is applied to a sources' subimage.  the
    416421    // value of DX is chosen (see above) to cover the full possible size of the subimage if it
     
    446451
    447452            // count pixels which are masked with an mask bit (bad or poor)
    448             if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[my][mx] & maskVal)) {
     453            if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[my][mx] & maskPoor)) {
    449454                notPoorSum += value;
    450455            }
     
    487492
    488493    if (isfinite(source->pixWeightNotBad) && isfinite(source->pixWeightNotPoor)) {
    489         psAssert (source->pixWeightNotBad <= source->pixWeightNotPoor, "error: all bad pixels should also be poor");
     494        psAssert (source->pixWeightNotPoor <= source->pixWeightNotBad, "error: all bad pixels should also be poor");
    490495    }
    491496
Note: See TracChangeset for help on using the changeset viewer.