IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2011, 2:58:21 PM (15 years ago)
Author:
eugene
Message:

only apply kron radius upper limit for faint sources; fix negative errors in forced phot; enable single direction test in ppSub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/psModules/src/objects/pmSourceMoments.c

    r31451 r31459  
    264264
    265265    // if Mrf (first radial moment) is very small, we are getting into low-significance
    266     // territory.  saturate at minKronRadius.  conversely, if Mrf is > radius, we are clearly
    267     // making an error.  saturate at radius.
    268     float kronRefRadius = MIN(radius, MAX(minKronRadius, source->moments->Mrf));
     266    // territory.  saturate at minKronRadius.  conversely, if Mrf is >> radius for faint
     267    // sources, we are clearly making an error.  saturate at radius.
     268    float kronRefRadius = MAX(minKronRadius, source->moments->Mrf);
     269    if (source->moments->SN < 10) {
     270        kronRefRadius = MIN(radius, kronRefRadius);
     271    }
    269272
    270273    float radKinner = 1.0*kronRefRadius;
Note: See TracChangeset for help on using the changeset viewer.