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/psphotSourceStats.c

    r15405 r16820  
    11# include "psphotInternal.h"
    22
    3 psArray *psphotSourceStats (pmReadout *readout, psMetadata *recipe, psArray *peaks, psMaskType maskVal, psMaskType mark)
     3psArray *psphotSourceStats (pmReadout *readout, psMetadata *recipe, pmDetections *detections)
    44{
    55    bool     status  = false;
     
    88
    99    psTimerStart ("psphot");
     10
     11    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     12    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     13    assert (maskVal);
     14
     15    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     16    psMaskType mark = psMetadataLookupU8(&status, recipe, "MASK.MARK"); // Mask value for bad pixels
     17    assert (mark);
    1018
    1119    // determine properties (sky, moments) of initial sources
     
    2028    char *breakPt  = psMetadataLookupStr (&status, recipe, "BREAK_POINT");
    2129    if (!status) return NULL;
     30
     31    psArray *peaks = detections->peaks;
    2232
    2333    sources = psArrayAllocEmpty (peaks->n);
Note: See TracChangeset for help on using the changeset viewer.