IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 29, 2008, 2:16:50 PM (18 years ago)
Author:
eugene
Message:

moved peaks and footprints into detections; moving mask selections into recipe and called functions; dropping unused MODE flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080229/psphot/src/psphotSourceStats.c

    r15405 r16760  
    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.