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

    r15143 r16820  
    33# define SKIPSTAR(MSG) { psTrace ("psphot", 3, "invalid : %s", MSG); continue; }
    44// measure the aperture residual statistics and 2D variations
    5 bool psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal, psMaskType mark)
     5
     6bool psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf)
    67{
    78    int Nfail = 0;
     
    1920
    2021    psTimerStart ("psphot");
     22
     23    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     24    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     25    assert (maskVal);
     26
     27    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     28    psMaskType mark = psMetadataLookupU8(&status, recipe, "MASK.MARK"); // Mask value for bad pixels
     29    assert (mark);
    2130
    2231    // S/N limit to perform full non-linear fits
Note: See TracChangeset for help on using the changeset viewer.