IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2008, 3:10:25 PM (18 years ago)
Author:
eugene
Message:

merge changes from eam_branch_20080229: better flag definitions, cleanup footprint code (move into psphotFindDetections), push mask selection into called functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFindPeaks.c

    r15962 r16820  
    166166        psFree(peaks);
    167167        peaks = footprints;             // well, you know what I mean
     168
     169        psLogMsg ("psphot", PS_LOG_INFO, "%ld footprints: %f sec\n", peaks->n, psTimerMark ("psphot"));
    168170    }
    169171
     
    174176}
    175177
    176 
    177 /************************************************************************************************************/
    178 /*
    179  * Cull a set of peaks contained in a psArray of pmFootprints
    180  */
    181 psErrorCode
    182 psphotCullPeaks(const psImage *image,   // the image wherein lives the footprint
    183                 const psImage *weight,  // corresponding variance image
    184                 const psMetadata *recipe,
    185                 psArray *footprints) {  // array of pmFootprints
    186     bool status = false;
    187     float nsigma_delta = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_DELTA");
    188     if (!status) {
    189         nsigma_delta = 0; // min.
    190     }
    191     float nsigma_min = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_MIN");
    192     if (!status) {
    193         nsigma_min = 0;
    194     }
    195     const float skyStdev = psMetadataLookupF32(NULL, recipe, "SKY_STDEV");
    196 
    197     return pmFootprintArrayCullPeaks(image, weight, footprints,
    198                                      nsigma_delta, nsigma_min*skyStdev);
    199 }
Note: See TracChangeset for help on using the changeset viewer.