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

    r15132 r16820  
    1212static bool SetBorderMatrixElements (psSparseBorder *border, pmReadout *readout, psArray *sources, bool constant_weights, int SKY_FIT_ORDER);
    1313
    14 bool psphotFitSourcesLinear (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final, psMaskType maskVal) {
     14bool psphotFitSourcesLinear (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final) {
    1515
    1616    bool status;
     
    2121
    2222    psTimerStart ("psphot");
     23
     24    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     25    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     26    assert (maskVal);
    2327
    2428    // source analysis is done in spatial order
     
    187191        pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    188192        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    189         if (!final) source->mode |= PM_SOURCE_MODE_TEMPSUB;
    190         // XXX not sure about the use of TEMPSUB
    191193    }
    192194
Note: See TracChangeset for help on using the changeset viewer.