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

    r15562 r16820  
    11# include "psphot.h"
    22
    3 bool psphotExtendedSources (pmReadout *readout, psArray *sources, psMetadata *recipe, psMaskType maskVal) {
     3bool psphotExtendedSources (pmReadout *readout, psArray *sources, psMetadata *recipe) {
    44
    55    bool status;
    66    int Next = 0;
    77    int Npsf = 0;
     8
     9    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     10    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     11    assert (maskVal);
    812
    913    // S/N limit to perform full non-linear fits
     
    117121        pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    118122        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    119         source->mode |= PM_SOURCE_MODE_TEMPSUB;
    120123    }
    121124
Note: See TracChangeset for help on using the changeset viewer.