IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2011, 5:23:09 PM (15 years ago)
Author:
eugene
Message:

measure a core flux in the moment analysis - this can be used with the kron flux to flag (and exclude?) detections in the badly-subtracted background regions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmFootprintCullPeaks.c

    r30752 r30865  
    3838                                 const float nsigma_delta, // how many sigma above local background a peak needs to be to survive
    3939                                 const float fPadding, // fractional padding added to stdev since bright peaks have unreasonably high significance
    40                                  const float min_threshold) { // minimum permitted coll height
     40                                 const float min_threshold, // minimum permitted coll height
     41                                 const float max_threshold) { // maximum permitted coll height
    4142    assert (img != NULL); assert (img->type.type == PS_TYPE_F32);
    4243    assert (weight != NULL); assert (weight->type.type == PS_TYPE_F32);
     
    119120            threshold = min_threshold;
    120121        }
     122        if (threshold > max_threshold) {
     123            threshold = max_threshold;
     124        }
    121125
    122126        // init peakFootprint here?
Note: See TracChangeset for help on using the changeset viewer.