IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 10:25:50 AM (18 years ago)
Author:
eugene
Message:

re-org and cleanup of the mask bits to make it consistent with the pmConfigMaskSetBits concepts; ensure mark and mask are correctly used

File:
1 edited

Legend:

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

    r16820 r18555  
    2323    psTimerStart ("psphot");
    2424
    25     // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
    26     psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     25    // bit-masks to test for good/bad pixels
     26    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT");
    2727    assert (maskVal);
     28
     29    // bit-mask to mark pixels not used in analysis
     30    psMaskType markVal = psMetadataLookupU8(&status, recipe, "MARK.PSPHOT");
     31    assert (markVal);
     32
     33    // maskVal is used to test for rejected pixels, and must include markVal
     34    maskVal |= markVal;
    2835
    2936    // setup the PSF fit radius details
     
    8592        // XXX need to define the guess flux?
    8693        // set the fit radius based on the object flux limit and the model
    87         psphotCheckRadiusPSF (readout, source, modelPSF);
     94        psphotCheckRadiusPSF (readout, source, modelPSF, markVal);
    8895
    8996        // set the source PSF model
Note: See TracChangeset for help on using the changeset viewer.